Skip to content

Commit

Permalink
addresses ubccr ubccr#541
Browse files Browse the repository at this point in the history
  • Loading branch information
claire-peters committed Jun 29, 2023
1 parent d3b1da6 commit 4ee5fcb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ <h2>Allocation Change Requests</h2>
{% endif %}
</td>
<td class="text-nowrap">
<div class="row">
<form method="post" action="{% url 'allocation-change-detail' change.pk %}">
{% if change.allocationattributechangerequest_set.all %}
<button class="btn btn-success mr-1" aria-disabled="true"
Expand All @@ -63,8 +64,9 @@ <h2>Allocation Change Requests</h2>
<input type="hidden" name="end_date_extension" value="{{ change.end_date_extension }}" />
<button type="submit" name="action" value="approve" class="btn btn-success mr-1">Approve</button>
{% endif %}
<a href="{% url 'allocation-change-detail' change.pk %}" class="btn btn-primary mr-1">Details</a>
</form>
<a href="{% url 'allocation-change-detail' change.pk %}" class="btn btn-primary mr-1">Details</a>
</div>
</td>
</tr>
{% endfor %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,14 @@ <h2>Allocation Requests</h2>
{% endif %}
<td>{{allocation.status}}</td>
<td class="text-nowrap">
<div class="row">
<form method="post" action="{% url 'allocation-detail' allocation.pk %}">
{% csrf_token %}
<input type="hidden" name="status" value="{{ allocation_status_active.id }}" />
<button type="submit" name="action" value="auto-approve" class="btn btn-success mr-1{% if allocation.get_information == '' %} confirm-activate{% endif %}">Approve</button>
<a href="{% url 'allocation-detail' allocation.pk %}" class="btn btn-primary mr-1">Details</a>
</form>
<a href="{% url 'allocation-detail' allocation.pk %}" class="btn btn-primary mr-1">Details</a>
</div>
</td>
</tr>
{% endfor %}
Expand Down

0 comments on commit 4ee5fcb

Please sign in to comment.