aboutsummaryrefslogtreecommitdiffstats
path: root/templates/results2.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/results2.html')
-rw-r--r--templates/results2.html16
1 files changed, 15 insertions, 1 deletions
diff --git a/templates/results2.html b/templates/results2.html
index 9f41c18..10fe829 100644
--- a/templates/results2.html
+++ b/templates/results2.html
@@ -19,7 +19,12 @@
{% endif %}
{% endfor %}
- {% if insolvency_notes|length > 0 %}
+ {% set criminal_notes = [] %}
+ {% for i in range (row.criminal_record|length) %}
+ {% set criminal_notes = criminal_notes.append(row.criminal_record[i].penalties) %}
+ {% endfor %}
+
+ {% if insolvency_notes|length > 0 or criminal_notes|length > 0 %}
{% set table_style = "table table-danger" %}
{% elif loop.index % 2 == 0 %}
{% set table_style = "table table-light" %}
@@ -73,6 +78,15 @@
</tr>
{% endfor %}
{% endif %}
+
+ {% if criminal_notes|length > 0 %}
+ {% for i in range (criminal_notes|length) %}
+ <tr>
+ <td colspan="4">Osoba byla odsouzena k následujícím trestům: {{ criminal_notes[i] }}</td>
+ </tr>
+ {% endfor %}
+ {% endif %}
+
</table>
{% endfor %}