blob: a0689d81fc2668f4c86fdd7f5a6fb8a4b1872ad2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
|
{% extends "base_stakeholder.html" %}
{% load static %}
{% block content %}
<div class="container mt-3">
<div class="row">
<div class="col-md-12 pl-0 my-2">
<h2>{{ org }} <span class="badge badge-light">{{ org.submode }}</span></h2>
<p><span class="text-muted">{{ org.person_set.first }}</span></p>
<p>THIS IS A TEMPLATE FOR A STAKEHOLDER USER</p>
<div class="row">
<div class="col-12">
<div class="border border-success p-2 rounded bg-light">
<h5>KEY INFORMATION:</h5>
<p>Please note that important notices go in here. This is the NIS Directive
portal for DfT. Etc.</p>
<p>Your lead inspector is <a href="#">Bob McKinnon</a>.</p>
<p>Other important messages will appear here when we deem it necessary.
Please ensure you remain in touch with what appears in this box because it
<strong>WILL</strong> be updated periodically.</p>
<span class="text-muted"><a href="#">Help</a> |
<a href="#">NIS Regulations</a> |
<a href="#">Improvement Plan Information</a> |
<a href="#">Report a problem</a></span>
</div>
</div>
</div>
<hr>
<div class="row">
<div class="col md-12">
<h2>Incident Reporting</h2>
{% if irs.count > 0 %}
<table class="table">
<thead>
<tr>
<th scope="col">Incident</th>
<th scope="col">Date</th>
<th scope="col">Details</th>
<th scope="col">Status</th>
</tr>
</thead>
{% for ir in irs %}
<tr>
<td>{{ ir.incident_type}}</td>
<td>{{ ir.date_time_incident_detected }}</td>
<td>{{ ir.summary }}</td>
{% if ir.dft_handle_status == "QUEUED" %}
<td><span class="badge badge-primary">{{ ir.dft_handle_status }}</span></td>
{% elif ir.dft_handle_status == "REVIEWING"%}
<td><span class="badge badge-info">{{ ir.dft_handle_status }}</span></td>
{% elif ir.dft_handle_status == "WAITING"%}
<td><span class="badge badge-secondary">{{ ir.dft_handle_status }}</span></td>
{% else %}
<td><span class="badge badge-secondary">{{ ir.dft_handle_status }}</span></td>
{% endif %}
</tr>
{% endfor %}
</table>
{% else %}
<p>No incidents reported</p>
{% endif %}
<a class="btn btn-primary" id="id_submit_incident_button" href="{% url "organisations:create_incident_report" org.slug %}">Report a NIS incident</a>
</div>
</div>
<hr>
<div class="row">
<div class="col md-12">
<h2>Audits and Inspections</h2>
<table class="table">
<thead>
<th scope="col">Date</th>
<th scope="col">Type</th>
<th scope="col">Location</th>
<th scope="col">Notes</th>
<th scope="col">CAF scope</th>
<th scope="col">Status</th>
<th scope="col">Report</th>
</thead>
<tr>
<td>23 October 2020</td>
<td>Inspection</td>
<td>Hammersmith</td>
<td>Follow up to <a href="#">July call</a></td>
<td>
<span class="badge badge-warning">A2.c</span>
<span class="badge badge-danger">B2.a</span>
</td>
<td><span class="badge badge-warning">SCHEDULED</span></td>
<td></td>
</tr>
<tr>
<td>5 June 2020</td>
<td>Audit</td>
<td>Hammersmith</td>
<td>NA</td>
<td>
<span class="badge badge-danger">A2.c</span>
<span class="badge badge-secondary">B5.c</span>
<span class="badge badge-secondary">B6</span>
<span class="badge badge-secondary">B7</span>
</td>
<td><span class="badge badge-success">RESOLVED</span></td>
<td><a href="#">DfT-NIS-2302A</a></td>
<tr>
<tr>
<td>19 January 2020</td>
<td>Meeting</td>
<td>Video</td>
<td>NA</td>
<td>
<span class="badge badge-secondary">Obj C</span>
</td>
<td><span class="badge badge-success">RESOLVED</span></td>
<td></td>
<tr>
</table>
</div>
</div>
<hr>
<div class="row">
<div class="col md-12">
<h2>NIS systems</h2>
<table class="table">
<thead>
<tr>
<th scope="col">System Name</th>
<th scope="col">Description</th>
<th scope="col">CAF</th>
</tr>
</thead>
{% for system in systems %}
<tr>
<td>{{ system.name }}</td>
<td>{{ system.function }}</td>
<td>{{ system.caf }} | <small><a href="#">Update WebCAF</a></small></td>
</tr>
{% endfor %}
</table>
</div>
</div>
<hr>
<div class="row">
<div class="col md-12">
<h2>DfT Engagement</h2>
{% if engagement_events|length > 0 %}
<table class="table table-md">
<thead>
<th>Date</td>
<th>Event</td>
<th>Description</td>
<th>DfT Comments</td>
</thead>
{% for event in engagement_events %}
<tr>
<td>{{event.date }}</td>
<td>{{ event.type}}</td>
<td>{{ event.short_description }}</td>
<td>{{ event.comments }}</td>
</tr>
{% endfor %}
{% else %}
<p>No engagement with DfT currently scheduled</p>
{% endif %}
</table>
</div>
</div>
</div>
</div>
</div>
{% endblock content %}
|