diff options
author | Petr Šmerkl <46304018+SveterCZE@users.noreply.github.com> | 2021-06-10 23:36:54 +0200 |
---|---|---|
committer | Petr Šmerkl <46304018+SveterCZE@users.noreply.github.com> | 2021-06-10 23:36:54 +0200 |
commit | cc86be247b6e10ccc0d21771c8d3583eb501b54e (patch) | |
tree | 2687f6e511d283621fc5b1d171cd3bccac926947 /templates | |
parent | a52388e1a55bb973c401350d9fb4633ef185ee61 (diff) | |
download | justice-cc86be247b6e10ccc0d21771c8d3583eb501b54e.tar.gz |
updating the ubo feature
Diffstat (limited to 'templates')
-rw-r--r-- | templates/extract-actual.html | 5 | ||||
-rw-r--r-- | templates/extract.html | 4 | ||||
-rw-r--r-- | templates/most_common_ubo.html | 24 | ||||
-rw-r--r-- | templates/results_persons.html | 18 | ||||
-rw-r--r-- | templates/trivia.html | 1 |
5 files changed, 50 insertions, 2 deletions
diff --git a/templates/extract-actual.html b/templates/extract-actual.html index a1f0241..6bc51fe 100644 --- a/templates/extract-actual.html +++ b/templates/extract-actual.html @@ -410,7 +410,10 @@ {% for i in range (ubo_notes|length) %} <tr> <td></td> - <td>{{ubo_notes[i].jmeno }}<br>{{ubo_notes[i].jmeno.adresa }} {% if ubo_notes[i].slovni_vyjadreni != "0" %}<br>{{ ubo_notes[i].slovni_vyjadreni }}</br>{% endif %} </td> + <td>{{ubo_notes[i].jmeno }} {{ubo_notes[i].jmeno.adresa }} + {% if ubo_notes[i].postaveni != "0" %}<br>{{ ubo_notes[i].postaveni }}{% endif %} + {% if ubo_notes[i].koncovyPrijemceText != "0" %}<br>{{ ubo_notes[i].koncovyPrijemceText }}{% endif %} + </td> </tr> {% endfor %} {% endif %} diff --git a/templates/extract.html b/templates/extract.html index 6ff31de..17bdd73 100644 --- a/templates/extract.html +++ b/templates/extract.html @@ -489,7 +489,9 @@ {% set underlne_style_open = "" %} {% set underlne_style_close = "" %} {% endif %} - <td>{{ underlne_style_open|safe }} {{row.ubo[i].jmeno }}<br>{{ubo_notes[i].jmeno.adresa }} {% if row.ubo[i].slovni_vyjadreni != "0" %}<br>{{row.ubo[i].slovni_vyjadreni }}</br>{% endif %} {{ underlne_style_close|safe }}</td> + <td>{{ underlne_style_open|safe }} {{row.ubo[i].jmeno }} {{row.ubo[i].jmeno.adresa}} + {% if row.ubo[i].postaveni != "0" %}<br>{{row.ubo[i].postaveni }}{% endif %} + {% if row.ubo[i].koncovyPrijemceText != "0" %}<br>{{row.ubo[i].koncovyPrijemceText }}{% endif %} {{ underlne_style_close|safe }}</td> <td>{{ underlne_style_open|safe }} Zapsáno: {{ row.ubo[i].zapis_datum }} {% if row.ubo[i].vymaz_datum != 0 %} <br> Vymazáno: {{ row.ubo[i].vymaz_datum }} {% endif %} {{ underlne_style_close|safe }}</td> </tr> {% endfor %} diff --git a/templates/most_common_ubo.html b/templates/most_common_ubo.html new file mode 100644 index 0000000..318d52f --- /dev/null +++ b/templates/most_common_ubo.html @@ -0,0 +1,24 @@ +{% include 'header.html' %} + +<h1>Nejčastější koneční vlastníci:</h1> + +<table class="table table-hover" style="width: auto"> + <thead class="thead-dark"> + <tr class="table-info"> + <th scope="col">#</th> + <th scope="col">Jméno</th> + <th scope="col">Počet společností</th> + </tr> + </thead> + <tbody> + {% for i in range (most_common_ubo|length) %} + <tr> + <th scope = "row">{{ i + 1 }}</th> + <td><a href="/results-ubo-{{most_common_ubo[i][2]}}">{{ most_common_ubo[i][0] }}</a></td> + <td>{{ most_common_ubo[i][1] }}</td> + </tr> + {% endfor %} + </tbody> +</table> + +{% include 'footer.html' %}
\ No newline at end of file diff --git a/templates/results_persons.html b/templates/results_persons.html index 65fac98..fc90e08 100644 --- a/templates/results_persons.html +++ b/templates/results_persons.html @@ -97,6 +97,24 @@ {% endif %} {% endfor %} + {% for elem in row.ubo_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", "konečný vlastní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 test_list %} {% if count.value % 2 == 0 %} {% set table_style = "table table-light" %} diff --git a/templates/trivia.html b/templates/trivia.html index 750706c..43e82ab 100644 --- a/templates/trivia.html +++ b/templates/trivia.html @@ -6,6 +6,7 @@ <p>Další zajímvavé údaje z obchodního resjtříku:</p> <p><a href="/most_common_addresses">Seznam nejčastějších sídel</a></p> <p><a href="/oldest_companies">Seznam nejstarších společností</a></p> +<p><a href="/most_common_ubo">Seznam nejčastějších konečných vlastníků</a></p> <p><a href="/most_common_purpose">Seznam nejčastějších účelů</a></p> <p><a href="/most_common_business">Seznam nejčastějších předmětů podnikání</a></p> <p><a href="/most_common_activity">Seznam nejčastějších předmětů činnosti</a></p> |