Skip to content

Commit

Permalink
Put managers_deputies in a block.
Browse files Browse the repository at this point in the history
  • Loading branch information
amanning9 committed Sep 4, 2023
1 parent 52bb1e6 commit 65df832
Showing 1 changed file with 36 additions and 34 deletions.
70 changes: 36 additions & 34 deletions jasmin_services/templates/jasmin_services/service_details.html
Original file line number Diff line number Diff line change
Expand Up @@ -255,42 +255,44 @@ <h3 class="card-title">Current Requests</h3>
</div>

{% endif %}
{% if grants %}
<div class="card">
<div class="card-header">
<h3 class="card-title">Managers & Deputies</h3>
</div>
<table class="table table-hover">
<thead>
<tr>
<th></th>
<th>Role</th>
<th>Name</th>
<th></th>
</tr>
</thead>
<tbody>
{% for manager in managers%}
<tr class="active">
<td class="text-muted" style="width: 1%;"><i></i></td>
<td><code>MANAGER</code></td>
<td>{{manager.first_name}} {{manager.last_name}}</td>
<td></td>
</tr>
{% endfor %}
{% for deputy in deputies%}
<tr class="active">
<td class="text-muted" style="width: 1%;"><i></i></td>
<td><code>DEPUTY</code></td>
<td>{{deputy.first_name}} {{deputy.last_name}}</td>
<td></td>
{% block managers_deputies %}
{% if grants %}
<div class="card">
<div class="card-header">
<h3 class="card-title">Managers & Deputies</h3>
</div>
<table class="table table-hover">
<thead>
<tr>
<th></th>
<th>Role</th>
<th>Name</th>
<th></th>
</tr>
</thead>
<tbody>
{% for manager in managers%}
<tr class="active">
<td class="text-muted" style="width: 1%;"><i></i></td>
<td><code>MANAGER</code></td>
<td>{{manager.first_name}} {{manager.last_name}}</td>
<td></td>
</tr>
{% endfor %}
{% for deputy in deputies%}
<tr class="active">
<td class="text-muted" style="width: 1%;"><i></i></td>
<td><code>DEPUTY</code></td>
<td>{{deputy.first_name}} {{deputy.last_name}}</td>
<td></td>
</tr>

{% endfor %}
</tbody>
</table>
</div>
{% endif %}
{% endfor %}
</tbody>
</table>
</div>
{% endif %}
{% endblock %}
{% endif %}
</div>
</div>
Expand Down

0 comments on commit 65df832

Please sign in to comment.