diff options
author | Petr Šmerkl <46304018+SveterCZE@users.noreply.github.com> | 2021-02-13 22:55:29 +0100 |
---|---|---|
committer | Petr Šmerkl <46304018+SveterCZE@users.noreply.github.com> | 2021-02-13 22:55:29 +0100 |
commit | 7d2b2df59abf9347d11da27e617660dea5480f9a (patch) | |
tree | f3f5fb4554f07894dd9ba67ccbdde8d60ee92a77 /templates/extract-actual.html | |
parent | 2de398f2c7f3f608c2a94eaf02921547a7978e13 (diff) | |
download | justice-7d2b2df59abf9347d11da27e617660dea5480f9a.tar.gz |
updated method for displaying shares
Diffstat (limited to 'templates/extract-actual.html')
-rw-r--r-- | templates/extract-actual.html | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/templates/extract-actual.html b/templates/extract-actual.html index 91b2469..f42a9b8 100644 --- a/templates/extract-actual.html +++ b/templates/extract-actual.html @@ -28,6 +28,14 @@ {% endif %} {% endfor %} +{% set ostatni_skutecnosti_notes = [] %} +{% for i in range (row.ostatni_skutecnosti|length) %} + {% if row.ostatni_skutecnosti[i].vymaz_datum == 0 %} + {% set ostatni_skutecnosti_notes = ostatni_skutecnosti_notes.append(row.ostatni_skutecnosti[i]) %} + {% endif %} +{% endfor %} + + {% set zapis_split = row.zapis.split("-") %} {% if zapis_split[1] == "01" %} {% set mesic = "ledna" %} @@ -197,6 +205,22 @@ </tr> {% endfor %} {% endif %} + + {% if ostatni_skutecnosti_notes|length > 0 %} + <tr> + <td>Ostatní skutečnosti:</td> + <td>{{ ostatni_skutecnosti_notes[0].ostatni_skutecnost }}</td> + <td></td> + </tr> + {% for i in range (1, ostatni_skutecnosti_notes|length) %} + <tr> + <td></td> + <td>{{ ostatni_skutecnosti_notes[i].ostatni_skutecnost }}</td> + <td></td> + </tr> + {% endfor %} + {% endif %} + </table> {% endfor %} |