aboutsummaryrefslogblamecommitdiffstats
path: root/templates/results_entities.html
blob: 858b2b1040241d5981c1491d64ca2576d442e4ed (plain) (tree)
1
2
3
4
5
6
7
8
9





                                           


                                    
 












                                                                               
                                                                                                     
















                                                                               
                                                                                                     
















                                                                                             
                                                                                                                      



                                                           
                                                              











                                                                                         
                                                                                                                  

                                                           
                












                                                                 
                                     
                                                
                                                                                            



                                                                     









                                          
                                                        






















                                                                               

                          
{% if show_form == True %}
    {% include 'search_form_entity.html' %}
{% else %}
    {% include 'header.html' %}
{% endif %}  

{% 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 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.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 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>
                {% if row.ico != 0 %}
                <td style="width:15%">IČO:</td>
                <td style="width:25%"><a href="/{{ row.ico }}"><b>{{ row.ico }}</b></a></td>
                {% else %}
                <td style="width:15%">Zahraniční reg. č.:</td>
                <td style="width:25%"><b>{{ row.reg_cislo }}</b></td>
                {% endif %}               
            </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' %}