Skip to content

Commit

Permalink
ubccr#294: Patching up a line in the allocation views.py file that wa…
Browse files Browse the repository at this point in the history
…s accidentally edited
  • Loading branch information
brisco17 committed Nov 23, 2021
1 parent 254f150 commit d2881d7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,16 @@
{% load crispy_forms_tags %}
{% load common_tags %}
{% load static %}


{% block title %}
Allocation Review New and Pending Change Requests
{% endblock %}


{% block content %}
<h2>Allocation Change Requests</h2>

{% if allocation_change_list %}
<div class="table-responsive">
<table class="table table-sm">
Expand Down Expand Up @@ -60,9 +65,10 @@ <h2>Allocation Change Requests</h2>
No new or pending allocation change requests!
</div>
{% endif %}

<script>
$("#navbar-main > ul > li.active").removeClass("active");
$("#navbar-admin").addClass("active");
$("#navbar-allocation-change-requests").addClass("active");
</script>
{% endblock %}
{% endblock %}
2 changes: 1 addition & 1 deletion coldfront/core/allocation/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1434,7 +1434,7 @@ def post(self, request, *args, **kwargs):
return HttpResponseRedirect(reverse('allocation-invoice-detail', kwargs={'pk': pk}))


class AllocationAddInvoiceNoteView(LoginRequiredMixin, UserPassesTestMixin, View):
class AllocationAddInvoiceNoteView(LoginRequiredMixin, UserPassesTestMixin, CreateView):
model = AllocationUserNote
template_name = 'allocation/allocation_add_invoice_note.html'
fields = ('is_private', 'note',)
Expand Down

0 comments on commit d2881d7

Please sign in to comment.