mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-02-10 16:49:41 +00:00
Start RA list template
This commit is contained in:
95
RIGS/templates/risk_assessment_table.html
Normal file
95
RIGS/templates/risk_assessment_table.html
Normal file
@@ -0,0 +1,95 @@
|
||||
{% extends 'base_rigs.html' %}
|
||||
{% load paginator from filters %}
|
||||
{% load help_text from filters %}
|
||||
{% load verbose_name from filters %}
|
||||
|
||||
{% block title %}Risk Assessment List{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<h2>Risk Assessment List</h2>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="table-responsive">
|
||||
<table class="table mb-0">
|
||||
<thead class="thead-dark">
|
||||
<tr>
|
||||
<th scope="col">Event</th>
|
||||
<th scope="col" class="text-truncate">{{ object_list.0|verbose_name:'nonstandard_equipment'|title }}</th>
|
||||
<th scope="col">{{ object_list.0|verbose_name:'nonstandard_use'|title }}</th>
|
||||
<th scope="col">{{ object_list.0|verbose_name:'contractors'|title }}</th>
|
||||
<th scope="col">{{ object_list.0|verbose_name:'other_companies'|title }}</th>
|
||||
<th scope="col">{{ object_list.0|verbose_name:'crew_fatigue'|title }}</th>
|
||||
<th scope="col">{{ object_list.0|verbose_name:'general_notes'|title }}</th>
|
||||
<th scope="col">{{ object_list.0|verbose_name:'big_power'|title }}</th>
|
||||
<th scope="col">{{ object_list.0|verbose_name:'power_mic'|title }}</th>
|
||||
<th scope="col">{{ object_list.0|verbose_name:'generators'|title }}</th>
|
||||
<th scope="col">{{ object_list.0|verbose_name:'other_companies_power'|title }}</th>
|
||||
<th scope="col">{{ object_list.0|verbose_name:'nonstandard_equipment_power'|title }}</th>
|
||||
<th scope="col">{{ object_list.0|verbose_name:'multiple_electrical_environments'|title }}</th>
|
||||
<th scope="col">{{ object_list.0|verbose_name:'power_notes'|title }}</th>
|
||||
<th scope="col">{{ object_list.0|verbose_name:'noise_monitoring'|title }}</th>
|
||||
<th scope="col">{{ object_list.0|verbose_name:'sound_notes'|title }}</th>
|
||||
<th scope="col">{{ object_list.0|verbose_name:'known_venue'|title }}</th>
|
||||
<th scope="col">{{ object_list.0|verbose_name:'safe_loading'|title }}</th>
|
||||
<th scope="col">{{ object_list.0|verbose_name:'safe_storage'|title }}</th>
|
||||
<th scope="col">{{ object_list.0|verbose_name:'area_outside_of_control'|title }}</th>
|
||||
<th scope="col">{{ object_list.0|verbose_name:'nonstandard_emergency_procedure'|title }}</th>
|
||||
<th scope="col">{{ object_list.0|verbose_name:'barrier_required'|title }}</th>
|
||||
<th scope="col">{{ object_list.0|verbose_name:'special_structures'|title }}</th>
|
||||
<th scope="col">{{ object_list.0|verbose_name:'persons_responsible_structures'|title }}</th>
|
||||
<th scope="col">{{ object_list.0|verbose_name:'suspended_structures'|title }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for object in object_list %}
|
||||
<tr>
|
||||
<th scope="row">{{ object.event }}</th>
|
||||
<td class="{% if object.nonstandard_equipment%}bg-danger text-white{%endif%}">{{object.nonstandard_equipment|yesno|title}}</td>
|
||||
<td class="{% if object.nonstandard_use%}bg-danger text-white{%endif%}">{{object.nonstandard_use|yesno|title}}</td>
|
||||
<td class="{% if object.contractors%}bg-danger text-white{%endif%}">{{object.contractors|yesno|title}}</td>
|
||||
<td class="{% if object.other_companies%}bg-danger text-white{%endif%}">{{object.other_companies|yesno|title}}</td>
|
||||
<td class="{% if object.crew_fatigue%}bg-danger text-white{%endif%}">{{object.crew_fatigue|yesno|title}}</td>
|
||||
<td>{{ object.general_notes|default:'N/A'|linebreaks }}</td>
|
||||
|
||||
<td class="{% if object.big_power%}bg-danger text-white{%endif%}">{{object.big_power|yesno|title}}</td>
|
||||
<td>{{ object.power_mic.name|default:'N/A' }}</td>
|
||||
<td class="{% if object.generators%}bg-danger text-white{%endif%}">{{object.generators|yesno|title}}</td>
|
||||
<td class="{% if object.other_companies_power%}bg-danger text-white{%endif%}">{{object.other_companies_power|yesno|title}}</td>
|
||||
<td class="{% if object.nonstandard_equipment_power%}bg-danger text-white{%endif%}">{{object.nonstandard_equipment_power|yesno|title}}</td>
|
||||
<td class="{% if object.multiple_electrical_environments%}bg-danger text-white{%endif%}">{{object.multiple_electrical_environments|yesno|title}}</td>
|
||||
<td>{{ object.power_notes|default:'N/A'|linebreaks }}</td>
|
||||
|
||||
<td class="{% if object.noise_monitoring%}bg-danger text-white{%endif%}">{{object.noise_monitoring|yesno|title}}</td>
|
||||
<td>{{ object.sound_notes|default:'N/A'|linebreaks }}</td>
|
||||
|
||||
<td class="{% if not object.known_venue%}bg-danger text-white{%endif%}">{{object.known_venue|yesno|title}}</td>
|
||||
<td class="{% if not object.safe_loading%}bg-danger text-white{%endif%}">{{object.safe_loading|yesno|title}}</td>
|
||||
<td class="{% if object.safe_storage%}bg-danger text-white{%endif%}">{{object.safe_storage|yesno|title}}</td>
|
||||
<td class="{% if object.area_outside_of_control%}bg-danger text-white{%endif%}">{{object.area_outside_of_control|yesno|title}}</td>
|
||||
<td class="{% if object.nonstandard_emergency_procedure%}bg-danger text-white{%endif%}">{{object.nonstandard_emergency_procedure|yesno|title}}</td>
|
||||
<td class="{% if object.barrier_required%}bg-danger text-white{%endif%}">{{object.barrier_required|yesno|title}}</td>
|
||||
|
||||
<td class="{% if object.special_structures%}bg-danger text-white{%endif%}">{{object.special_structures|yesno|title}}</td>
|
||||
<td>{{ object.persons_responsible_structures|default:'N/A'|linebreaks }}</td>
|
||||
<td class="{% if object.suspended_structures%}bg-danger text-white{%endif%}">{{object.suspended_structures|yesno|title}}</td>
|
||||
</tr>
|
||||
{% empty %}
|
||||
<tr class="bg-warning">
|
||||
<td colspan="6">Not 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