mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-02-14 10:39:41 +00:00
Allow multiple event checklists per event
TODO: Status chip now needs rethinking
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<div class="card {% if event.riskassessment and event.eventchecklist %}
|
||||
<div class="card {% if event.hs_done %}
|
||||
border-success
|
||||
{% else %}
|
||||
border-warning
|
||||
@@ -8,7 +8,12 @@
|
||||
<h5>Risk Assessment:</h5>
|
||||
{% include 'partials/hs_status.html' with event=event object=event.riskassessment view='ra_detail' edit='ra_edit' create='event_ra' %}
|
||||
<hr>
|
||||
<h5>Event Checklist:</h5>
|
||||
{% include 'partials/hs_status.html' with event=event object=event.eventchecklist view='ec_detail' edit='ec_edit' create='event_ec' %}
|
||||
<h5>Event Checklists:</h5>
|
||||
{% for checklist in event.checklists.all %}
|
||||
{% include 'partials/hs_status.html' with event=event object=checklist view='ec_detail' edit='ec_edit' create='event_ec' review='ec_review' perm=perms.RIGS.review_eventchecklist %}
|
||||
<br/>
|
||||
{% endfor %}
|
||||
<a href="{% url 'event_ec' event.pk %}" class="btn btn-info mt-2"><span class="fas fa-paperclip"></span> <span
|
||||
class="hidden-xs">Create</span></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user