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

@@ -33,13 +33,18 @@
</td>
<td>
<h4>
<a {% if perms.RIGS.view_event %}href="{% url 'event_detail' event.pk %}" {% endif %}>{{ event.name }}</a>
<a {% if perms.RIGS.view_event %}href="{% url 'event_detail' event.pk %}" {% endif %}>
{{ event.name }}
</a>
{% if event.venue %}
<small>at {{ event.venue }}</small>
{% endif %}
{% if event.dry_hire %}
<span class="label label-default">Dry Hire</span>
{% endif %}
{% if event.is_rig and perms.RIGS.view_event and event.authorised %}
<span class="glyphicon glyphicon-check"></span>
{% endif %}
</h4>
{% if event.is_rig and not event.cancelled %}
<h5>
@@ -99,4 +104,4 @@
{% endfor %}
</tbody>
</table>
</div>
</div>