mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-17 13:32:15 +00:00
* Split power related parts of event checklist into a seperate form * Revamp H&S overview, remove individual lists. They were not a good thing. * Remove old 'vehicle/crew' stuff * Very initial version of checkin form * Further work on checkin, add role field etc * Fix tests after form split * Add ability to edit checkins, more validation * Basic checkin/out logic complete * Add homepage checkin for events happening now * Minor improvement to homepage UI * Checkin button turns into checkout button where applicable * UI work * Clicking check out does not redirect the user * Register check in model with the admin site * Add power record status chip, checklist status chip displays number of checklists * Minor fixes * Implement codedoctor suggestions * pep8 * Add data migration for crew/vehicles * Checkin only requires login (no perms) and block users from editing other checkins at Django level
28 lines
1.4 KiB
HTML
28 lines
1.4 KiB
HTML
<div class="card {% if event.hs_done %}
|
|
border-success
|
|
{% else %}
|
|
border-warning
|
|
{% endif %}">
|
|
<div class="card-header">Health & Safety Details</div>
|
|
<div class="card-body">
|
|
<h5>Risk Assessment:</h5>
|
|
{% include 'partials/hs_status.html' with event=event object=event.riskassessment view='ra_detail' edit='ra_edit' create='event_ra' review='ra_review' perm=perms.RIGS.review_riskassessment %}
|
|
<hr>
|
|
<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>
|
|
<hr>
|
|
<h5>Power Test Records:</h5>
|
|
{% for record in event.power_tests.all %}
|
|
{% include 'partials/hs_status.html' with event=event object=record view='pt_detail' edit='pt_edit' create='event_pt' review='pt_review' perm=perms.RIGS.review_power %}
|
|
<br/>
|
|
{% endfor %}
|
|
<a href="{% url 'event_pt' event.pk %}" class="btn btn-info mt-2"><span class="fas fa-paperclip"></span> <span
|
|
class="hidden-xs">Create</span></a>
|
|
</div>
|
|
</div>
|