mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-02-08 16:09:40 +00:00
Mooooore status chips, mooore
This commit is contained in:
71
RIGS/templates/event_checklist_list.html
Normal file
71
RIGS/templates/event_checklist_list.html
Normal file
@@ -0,0 +1,71 @@
|
||||
{% extends 'base_rigs.html' %}
|
||||
{% load paginator from filters %}
|
||||
{% load help_text from filters %}
|
||||
{% load verbose_name from filters %}
|
||||
|
||||
{% block title %}Event Checklist List{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<h2>Event Checklist List</h2>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="table-responsive">
|
||||
<table class="table mb-0">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">Event</th>
|
||||
{# mmm hax #}
|
||||
{% if object_list.0 %}
|
||||
<th scope="col" class="">{{ object_list.0|verbose_name:'power_mic'|title }}</th>
|
||||
<th scope="col">{{ object_list.0|verbose_name:'vehicles'|title }}</th>
|
||||
<th scope="col">{{ object_list.0|verbose_name:'safe_parking'|title }}</th>
|
||||
<th scope="col">{{ object_list.0|verbose_name:'safe_packing'|title }}</th>
|
||||
<th scope="col">{{ object_list.0|verbose_name:'exits'|title }}</th>
|
||||
<th scope="col">{{ object_list.0|verbose_name:'trip_hazard'|title }}</th>
|
||||
<th scope="col">{{ object_list.0|verbose_name:'warning_signs'|title }}</th>
|
||||
<th scope="col">{{ object_list.0|verbose_name:'ear_plugs'|title }}</th>
|
||||
<th scope="col">{{ object_list.0|verbose_name:'hs_location'|title }}</th>
|
||||
<th scope="col">{{ object_list.0|verbose_name:'extinguishers_location'|title }}</th>
|
||||
<th scope="col">{{ object_list.0|verbose_name:'rcds'|title }}</th>
|
||||
<th scope="col">{{ object_list.0|verbose_name:'supply_test'|title }}</th>
|
||||
<th scope="col">{{ object_list.0|verbose_name:'earthing'|title }}</th>
|
||||
<th scope="col">{{ object_list.0|verbose_name:'pat'|title }}</th>
|
||||
{% endif %}
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for object in object_list %}
|
||||
<tr>
|
||||
{# General #}
|
||||
<th scope="row" class="{% if object.reviewed_by %}bg-success{%endif%}"><a href="{% url 'event_detail' object.event.pk %}">N{{ object.event.pk|stringformat:"05d" }} {{ object.event.name }}</a></th>
|
||||
<td>{{object.power_mic.name}}</td>
|
||||
{# Buttons #}
|
||||
<td>
|
||||
<a class="btn btn-primary" href="{% url 'ra_detail' object.pk %}">View</a>
|
||||
{% if object.reviewed_by %}
|
||||
Reviewed by <a href="{% url 'profile_detail' object.reviewed_by.pk %}">{{ object.reviewed_by }}</a> at {{ object.reviewed_at }}
|
||||
{% else %}
|
||||
<a class="btn btn-success my-2" href="{% url 'ra_review' object.pk %}">Mark Reviewed</a>
|
||||
{% endif %}
|
||||
</td>
|
||||
</tr>
|
||||
{% empty %}
|
||||
<tr class="bg-warning text-dark">
|
||||
<td colspan="6">No checklists found</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% if is_paginated %}
|
||||
<div class="row justify-content-center">
|
||||
{% paginator %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user