50 lines
1.7 KiB
HTML
50 lines
1.7 KiB
HTML
{% load i18n fontawesome_5 ksp_filters %}
|
|
<h3>{% trans 'Law usage' %}</h3>
|
|
<strong>
|
|
{% blocktrans %}
|
|
Please note: One intervention can be based on multiple laws. This table therefore does not
|
|
count
|
|
{% endblocktrans %}
|
|
</strong>
|
|
<div class="table-container scroll-300">
|
|
<table class="table table-hover">
|
|
<thead>
|
|
<tr>
|
|
<th class="w-25" scope="col">
|
|
{% trans 'Law' %}
|
|
</th>
|
|
<th scope="col">
|
|
{% fa5_icon 'star' %} {% trans 'Checked' %}
|
|
</th>
|
|
<th scope="col">
|
|
{% fa5_icon 'bookmark' %} {% trans 'Recorded' %}
|
|
</th>
|
|
<th scope="col">
|
|
{% trans 'Total' %}
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for law in report.intervention_report.evaluated_laws %}
|
|
<tr>
|
|
<td>
|
|
{{law.short_name}}
|
|
<br>
|
|
<small>
|
|
{{law.long_name}}
|
|
</small>
|
|
</td>
|
|
<td>{{law.num_checked|default_if_zero:"-"}}</td>
|
|
<td>{{law.num_recorded|default_if_zero:"-"}}</td>
|
|
<td>{{law.num|default_if_zero:"-"}}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
<tr>
|
|
<td><strong>{% trans 'Total' %}</strong></td>
|
|
<td><strong>{{report.intervention_report.law_sum_checked|default_if_zero:"-"}}</strong></td>
|
|
<td><strong>{{report.intervention_report.law_sum_recorded|default_if_zero:"-"}}</strong></td>
|
|
<td><strong>{{report.intervention_report.law_sum|default_if_zero:"-"}}</strong></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div> |