diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/extract-actual.html | 37 | ||||
-rw-r--r-- | templates/extract.html | 48 |
2 files changed, 82 insertions, 3 deletions
diff --git a/templates/extract-actual.html b/templates/extract-actual.html index 6bc51fe..f24cb80 100644 --- a/templates/extract-actual.html +++ b/templates/extract-actual.html @@ -49,6 +49,14 @@ {% endif %} {% endfor %} + +{% set vacant_shares_notes = [] %} +{% for i in range (row.spolecnici_uvolneny_podil|length) %} + {% if row.spolecnici_uvolneny_podil[i].vymaz_datum == 0 %} + {% set vacant_shares_notes = vacant_shares_notes.append(row.spolecnici_uvolneny_podil[i]) %} + {% endif %} +{% endfor %} + {% set sole_shareholder_notes = [] %} {% for i in range (row.jediny_akcionar|length) %} {% if row.jediny_akcionar[i].vymaz_datum == 0 %} @@ -368,7 +376,7 @@ <!-- END Display sole shareholder --> <!-- Display shareholders --> - {% if spolecnici_notes|length > 0 %} + {% if spolecnici_notes|length > 0 or vacant_shares_notes|length > 0 %} <tr> <td>Společníci:</td> <td></td> @@ -398,6 +406,33 @@ </tr> {% endfor %} {% endfor %} + + <!-- Display vacant shares --> + {% for i in range (vacant_shares_notes|length) %} + <tr> + <td style = padding-left:2em>Uvolněný obchodní podíl:</td> + <td>{% if vacant_shares_notes[i].text_uvolneny_podil != "0" %}{{ vacant_shares_notes[i].text_uvolneny_podil }}{% endif %}</td> + </tr> + {% set vacant_shares = [] %} + {% for j in range (vacant_shares_notes[i].podily|length) %} + {% if vacant_shares_notes[i].podily[j].vymaz_datum == 0 %} + {% set vacant_shares = vacant_shares.append(vacant_shares_notes[i].podily[j]) %} + {% endif %} + {% endfor %} + + {% for k in range (vacant_shares|length) %} + <tr> + <td style = padding-left:4em>Podíl:</td> + <td> + {% for elem in vacant_shares[k].my_rep() %} + {{ elem }}<br> + {% endfor %} + </td> + </tr> + {% endfor %} + {% endfor %} + <!-- END Display vacant shares --> + {% endif %} <!-- END Display shareholders --> diff --git a/templates/extract.html b/templates/extract.html index 17bdd73..2b27462 100644 --- a/templates/extract.html +++ b/templates/extract.html @@ -422,7 +422,7 @@ <!-- END Display sole shareholder --> <!-- Display shareholders --> - {% if row.spolecnici|length > 0 %} +{% if row.spolecnici|length > 0 or row.spolecnici_uvolneny_podil|length > 0 %} <tr> <td>Společníci:</td> <td></td> @@ -466,10 +466,54 @@ {% endfor %} {% endif %} <!-- END of individual ownership interests --> + </tr> + {% endfor %} + + <!-- Insert vacant ownership interests --> + {% for i in range (row.spolecnici_uvolneny_podil|length) %} + <tr> + <td style = padding-left:2em>Uvolněný obchodní podíl:</td> + {% if row.spolecnici_uvolneny_podil[i].vymaz_datum != 0 %} + {% set underlne_style_open = undedrline_open_deleted %} + {% set underlne_style_close = undedrline_closed_deleted %} + {% else %} + {% set underlne_style_open = "" %} + {% set underlne_style_close = "" %} + {% endif %} + <td>{{ underlne_style_open|safe }} {% if row.spolecnici_uvolneny_podil[i].text_uvolneny_podil != "0" %}{{ row.spolecnici_uvolneny_podil[i].text_uvolneny_podil }}{% endif %} + {{ underlne_style_close|safe }}</td> + <td>{{ underlne_style_open|safe }} Zapsáno: {{ row.spolecnici_uvolneny_podil[i].zapis_datum }} {% if row.spolecnici_uvolneny_podil[i].vymaz_datum != 0 %} <br> Vymazáno: {{ row.spolecnici_uvolneny_podil[i].vymaz_datum }} {% endif %} {{ underlne_style_close|safe }}</td> </tr> + + <!-- Insert individual vacant ownership interests --> + {% if row.spolecnici_uvolneny_podil[i].podily|length > 0 %} + + {% for j in range (row.spolecnici_uvolneny_podil[i].podily|length) %} + <tr> + <td style = padding-left:4em>Podíl:</td> + {% if row.spolecnici_uvolneny_podil[i].podily[j].vymaz_datum != 0 %} + {% set underlne_style_open = undedrline_open_deleted %} + {% set underlne_style_close = undedrline_closed_deleted %} + {% else %} + {% set underlne_style_open = "" %} + {% set underlne_style_close = "" %} + {% endif %} + <td>{{ underlne_style_open|safe }} + {% for elem in row.spolecnici_uvolneny_podil[i].podily[j].my_rep() %} + {{ elem }}<br> + {% endfor %} + {{ underlne_style_close|safe }} + </td> + <td>{{ underlne_style_open|safe }}Zapsáno: {{ row.spolecnici_uvolneny_podil[i].podily[j].zapis_datum }} {% if row.spolecnici_uvolneny_podil[i].podily[j].vymaz_datum != 0 %}<br>Vymazáno: {{ row.spolecnici_uvolneny_podil[i].podily[j].vymaz_datum }}{% endif %}{{ underlne_style_close|safe }}</td> + </tr> + {% endfor %} + {% endif %} + <!-- END of individual vacant ownership interests --> {% endfor %} - {% endif %} + <!-- END of vacant ownership interests --> + +{% endif %} <!-- END Display shareholders --> <!-- Display UBO --> |