Skip to content

Commit

Permalink
add add-change-request button to allocation change requests table
Browse files Browse the repository at this point in the history
  • Loading branch information
claire-peters committed Feb 21, 2024
1 parent 819d4d1 commit 9c01ba7
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,20 +40,18 @@ <h2>Allocation Detail</h2>

<div class="card mb-3">
<div class="card-header">
{% if allocation.is_changeable and not allocation.is_locked and is_allowed_to_update_project and allocation.status.name in 'Active, Renewal Requested, Payment Pending, Payment Requested, Paid' %}
<div class="row">
<div class="col">
<h3><i class="fas fa-list" aria-hidden="true"></i> Allocation Information</h3>
</div>
{% if allocation.is_changeable and not allocation.is_locked and is_allowed_to_update_project and allocation.status.name in 'Active, Renewal Requested, Payment Pending, Payment Requested, Paid' %}
<div class="col">
<a class="btn btn-primary" href="{% url 'allocation-change' allocation.pk %}" role="button" style="float: right;">
Request Change
</a>
</div>
</div>
{% else %}
<h3><i class="fas fa-list" aria-hidden="true"></i> Allocation Information</h3>
{% endif %}
</div>
</div>

<div class="card-body">
Expand Down Expand Up @@ -373,6 +371,11 @@ <h4 class="card-title">{{attribute}}</h4>
<h3 class="d-inline">
<i class="fas fa-info-circle" aria-hidden="true"></i> Allocation Change Requests
</h3> <span class="badge badge-secondary">{{allocation_changes.count}}</span>
{% if allocation.is_changeable and not allocation.is_locked and is_allowed_to_update_project and allocation.status.name in 'Active, Renewal Requested, Payment Pending, Payment Requested, Paid' %}
<a class="btn btn-primary" href="{% url 'allocation-change' allocation.pk %}" role="button" style="float: right;">
Request Change
</a>
{% endif %}
</div>

<div class="card-body">
Expand Down

0 comments on commit 9c01ba7

Please sign in to comment.