aboutsummaryrefslogtreecommitdiffstats
path: root/templates/results_entities.html
diff options
context:
space:
mode:
authorPetr Šmerkl <46304018+SveterCZE@users.noreply.github.com>2021-05-01 15:56:42 +0200
committerPetr Šmerkl <46304018+SveterCZE@users.noreply.github.com>2021-05-01 15:56:42 +0200
commitd5be03206a83c09751d9c9bc73e0ad960d0dc487 (patch)
tree9ea2fad0837d7e8bc26eca220e6886c1ac868bef /templates/results_entities.html
parent53e6b03b8f68b85c10a2c7c4412a792b5bd4755d (diff)
downloadjustice-d5be03206a83c09751d9c9bc73e0ad960d0dc487.tar.gz
update search by legal persons in a role
Diffstat (limited to 'templates/results_entities.html')
-rw-r--r--templates/results_entities.html121
1 files changed, 120 insertions, 1 deletions
diff --git a/templates/results_entities.html b/templates/results_entities.html
index d81086e..3b87fc5 100644
--- a/templates/results_entities.html
+++ b/templates/results_entities.html
@@ -4,7 +4,126 @@
{% include 'header.html' %}
{% endif %}
-{{ results }}
+{% set count = namespace(value=0) %}
+ {% for row in results %}
+ {% set test_list = [] %}
+ {% for elem in row.spolecnik_association %}
+ {% if selection_method == "actual_results" and elem.vymaz_datum != 0 %}
+ {% set xxx = [] %}
+ {% else %}
+ {% set my_dict = {} %}
+ {% set x = my_dict.__setitem__("adresa", elem.adresa) %}
+ {% set x = my_dict.__setitem__("funkce", "společník") %}
+ {% set x = my_dict.__setitem__("nazev", elem.company.nazev) %}
+ {% set x = my_dict.__setitem__("ico", elem.company.ico) %}
+ {% set x = my_dict.__setitem__("oddil", elem.company.oddil) %}
+ {% set x = my_dict.__setitem__("vlozka", elem.company.vlozka) %}
+ {% set x = my_dict.__setitem__("soud", elem.company.soud) %}
+ {% set x = my_dict.__setitem__("zapis", elem.company.zapis) %}
+ {% set test_list = test_list.append(my_dict) %}
+ {% endif %}
+ {% endfor %}
+
+ {% for elem in row.sole_shareholder_association %}
+ {% if selection_method == "actual_results" and elem.vymaz_datum != 0 %}
+ {% set xxx = [] %}
+ {% else %}
+ {% set my_dict = {} %}
+ {% set x = my_dict.__setitem__("adresa", elem.adresa) %}
+ {% set x = my_dict.__setitem__("funkce", "jediný akcionář") %}
+ {% set x = my_dict.__setitem__("nazev", elem.company.nazev) %}
+ {% set x = my_dict.__setitem__("ico", elem.company.ico) %}
+ {% set x = my_dict.__setitem__("oddil", elem.company.oddil) %}
+ {% set x = my_dict.__setitem__("vlozka", elem.company.vlozka) %}
+ {% set x = my_dict.__setitem__("soud", elem.company.soud) %}
+ {% set x = my_dict.__setitem__("zapis", elem.company.zapis) %}
+ {% set test_list = test_list.append(my_dict) %}
+ {% endif %}
+ {% endfor %}
+
+ {% for elem in row.statut_org_association %}
+ {% if selection_method == "actual_results" and elem.vymaz_datum != 0 %}
+ {% set xxx = [] %}
+ {% else %}
+ {% set my_dict = {} %}
+ {% set x = my_dict.__setitem__("adresa", elem.adresa) %}
+ {% set x = my_dict.__setitem__("funkce", elem.funkce) %}
+ {% set x = my_dict.__setitem__("nazev", elem.statutarni_organ.company.nazev) %}
+ {% set x = my_dict.__setitem__("ico", elem.statutarni_organ.company.ico) %}
+ {% set x = my_dict.__setitem__("oddil", elem.statutarni_organ.company.oddil) %}
+ {% set x = my_dict.__setitem__("vlozka", elem.statutarni_organ.company.vlozka) %}
+ {% set x = my_dict.__setitem__("soud", elem.statutarni_organ.company.soud) %}
+ {% set x = my_dict.__setitem__("zapis", elem.statutarni_organ.company.zapis) %}
+ {% set test_list = test_list.append(my_dict) %}
+ {% endif %}
+ {% endfor %}
+
+ <!-- Insert once data on supervisory board members (natural persons) are available -->
+ <!-- {% for elem in row.supervisory_board_member_association %}
+ {% if selection_method == "actual_results" and elem.vymaz_datum != 0 %}
+ {% set xxx = [] %}
+ {% else %}
+ {% set my_dict = {} %}
+ {% set x = my_dict.__setitem__("adresa", elem.adresa) %}
+ {% set x = my_dict.__setitem__("funkce", elem.funkce) %}
+ {% set x = my_dict.__setitem__("nazev", elem.dozorci_rada.company.nazev) %}
+ {% set x = my_dict.__setitem__("ico", elem.dozorci_rada.company.ico) %}
+ {% set x = my_dict.__setitem__("oddil", elem.dozorci_rada.company.oddil) %}
+ {% set x = my_dict.__setitem__("vlozka", elem.dozorci_rada.company.vlozka) %}
+ {% set x = my_dict.__setitem__("soud", elem.dozorci_rada.company.soud) %}
+ {% set x = my_dict.__setitem__("zapis", elem.dozorci_rada.company.zapis) %}
+ {% set test_list = test_list.append(my_dict) %}
+ {% endif %}
+ {% endfor %} -->
+
+ {% for elem in test_list %}
+ {% if count.value % 2 == 0 %}
+ {% set table_style = "table table-light" %}
+ {% else %}
+ {% set table_style = "table table-secondary" %}
+ {% endif %}
+
+ <table class= "{{table_style}}" style="width: 100%">
+ <p></p>
+ <tr>
+ <td style="width:20%">Název:</td>
+ <td style="width:40%"><b>{{ row.nazev }}</b></td>
+ <td style="width:15%">IČO:</td>
+ <td style="width:25%"><b>{{ row.ico }}</b></td>
+ </tr>
+
+ <tr>
+ <td>Adresa:</td>
+ <td>{{ elem.adresa }}</td>
+ <td>Angažmá:</td>
+ <td>{{ elem.funkce }}</td>
+ </tr>
+
+ <tr>
+ <td><i>ve společnosti:</i></td>
+ <td></td>
+ <td></td>
+ <td></td>
+ </tr>
+
+ <tr>
+ <td>Název subjektu:</td>
+ <td><b>{{ elem.nazev }}</b></td>
+ <td>IČO:</td>
+ <td><a href="/{{ elem.ico }}"><b>{{ elem.ico }}</b></a></td>
+ </tr>
+
+ <tr>
+ <td>Spisová značka:</td>
+ <td>{{elem.oddil}} {{elem.vlozka}} vedená u {{elem.soud}}</td>
+ <td>Den zápisu:</td>
+ <td>{{elem.zapis}}</td>
+ </tr>
+
+ </table>
+ {% set count.value = count.value + 1 %}
+ {% endfor %}
+{% endfor %}
{% include 'footer.html' %} \ No newline at end of file