Update templates to include the new authorisation fields

This commit is contained in:
Tom Price
2017-04-10 21:43:18 +01:00
parent 22119a3d08
commit 5d17d642ec
7 changed files with 102 additions and 29 deletions

View File

@@ -54,7 +54,12 @@
<td><a href="{% url 'event_detail' object.pk %}">N{{ object.pk|stringformat:"05d" }}</a><br>
<span class="text-muted">{{ object.get_status_display }}</span></td>
<td>{{ object.start_date }}</td>
<td>{{ object.name }}</td>
<td>
{{ object.name }}
{% if object.is_rig and perms.RIGS.view_event and object.authorised %}
<span class="glyphicon glyphicon-check"></span>
{% endif %}
</td>
<td>
{% if object.organisation %}
{{ object.organisation.name }}
@@ -67,7 +72,11 @@
{% endif %}
</td>
<td>{{ object.sum_total|floatformat:2 }}</td>
<td>
{{ object.sum_total|floatformat:2 }}
<br />
<span class="text-muted">{{ object.authorisation.po }}</span>
</td>
<td class="text-center">
{% if object.mic %}
{{ object.mic.initials }}<br>
@@ -92,4 +101,4 @@
</div>
{% endif %}
</div>
{% endblock %}
{% endblock %}