aboutsummaryrefslogtreecommitdiffstats
path: root/templates/results_persons.html
blob: 65fac9895293a874075de2f60770cb6c9ce373d7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
{% if show_form == True %}
    {% include 'search_form_person.html' %}
{% else %}
    {% include 'header.html' %}
{% endif %}  

{% set count = namespace(value=0) %}
    {% for row in results %}
    {% set test_list = [] %}
    {% 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 x = my_dict.__setitem__("pravni_forma", elem.statutarni_organ.company.current_legal_form_text()) %}
            {% set test_list = test_list.append(my_dict) %}
        {% endif %}
    {% endfor %}

    {% 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 x = my_dict.__setitem__("pravni_forma", elem.dozorci_rada.company.current_legal_form_text()) %}
            {% set test_list = test_list.append(my_dict) %}
        {% endif %}
    {% endfor %}    

    {% 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 x = my_dict.__setitem__("pravni_forma", elem.company.current_legal_form_text()) %}
            {% 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 x = my_dict.__setitem__("pravni_forma", elem.company.current_legal_form_text()) %}
            {% set test_list = test_list.append(my_dict) %}
        {% endif %}
    {% endfor %}
    
    {% for elem in row.prokurista_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", "prokurista") %}
            {% 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 x = my_dict.__setitem__("pravni_forma", elem.company.current_legal_form_text()) %}
            {% 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%">Jméno:</td>
                <td style="width:40%"><b>{{ row.get_name() }}</b></td>
                <td style="width:15%">Datum narození:</td>
                <td style="width:25%"><b>{{ row.datum_naroz }}</b></td>
            </tr>

            <tr>
                <td>Adresa:</td>
                <td>{{ elem.adresa }}</td>
                <td>Angažmá:</td>
                <td>{{ elem.funkce }}</td>
            </tr>

            <tr>
                <td><i>{{ elem.pravni_forma }}:</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' %}