aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorPetr Šmerkl <46304018+SveterCZE@users.noreply.github.com>2021-04-16 23:50:43 +0200
committerPetr Šmerkl <46304018+SveterCZE@users.noreply.github.com>2021-04-16 23:50:43 +0200
commit9a9914e21a4813e1ebb810be2b3b8084067c63b4 (patch)
treeb4ebddb948f521beacea9a1513452670ae3462cf /templates
parentc1e3a9f4c0b7cdb03fbd90474d9576dc79438bea (diff)
downloadjustice-9a9914e21a4813e1ebb810be2b3b8084067c63b4.tar.gz
work in progress - search by persons
Diffstat (limited to 'templates')
-rw-r--r--templates/results_persons.html58
-rw-r--r--templates/search_form.html4
-rw-r--r--templates/search_form_person.html58
3 files changed, 119 insertions, 1 deletions
diff --git a/templates/results_persons.html b/templates/results_persons.html
new file mode 100644
index 0000000..a3ceb38
--- /dev/null
+++ b/templates/results_persons.html
@@ -0,0 +1,58 @@
+{% include 'header.html' %}
+
+{% if show_form == True %}
+ {% include 'search_form_person.html' %}
+{% endif %}
+
+<p><b>Počet nalezených osob: {{ results|length }}</b></p>
+
+{% set count = namespace(value=0) %}
+{% for row in results %}
+<p>{{ row }} {{ row.statut_org_association }}
+ {% for elem in row.spolecnik_association %}
+ {{ elem.company.nazev }} {{ elem.adresa }}
+ {% endfor %}
+ </p>
+ {% for elem in row.statut_org_association %}
+ {% 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>Název subjektu:</td>
+ <td><b>{{ elem.statutarni_organ.company.nazev }}</b></td>
+ <td>IČO:</td>
+ <td><a href="/{{ elem.statutarni_organ.company.ico }}"><b>{{ elem.statutarni_organ.company.ico }}</b></a></td>
+ </tr>
+
+ <tr>
+ <td>Spisová značka:</td>
+ <td>{{elem.statutarni_organ.company.oddil}} {{elem.statutarni_organ.company.vlozka}} vedená u {{elem.statutarni_organ.company.soud}}</td>
+ <td>Den zápisu:</td>
+ <td>{{elem.statutarni_organ.company.zapis}}</td>
+ </tr>
+
+ </table>
+ {% set count.value = count.value + 1 %}
+ {% endfor %}
+{% endfor %}
+
+
+{% include 'footer.html' %} \ No newline at end of file
diff --git a/templates/search_form.html b/templates/search_form.html
index 1077959..83ae305 100644
--- a/templates/search_form.html
+++ b/templates/search_form.html
@@ -1,3 +1,4 @@
+{% include 'header.html' %}
<title>Justice Database</title>
<h2>Justice Database</h2>
@@ -104,4 +105,5 @@
</p>
</form>
-<p><a href="/trivia">Další zajímvavé údaje z obchodního resjtříku.</a></p> \ No newline at end of file
+<p><a href="/trivia">Další zajímvavé údaje z obchodního resjtříku.</a></p>
+{% include 'footer.html' %} \ No newline at end of file
diff --git a/templates/search_form_person.html b/templates/search_form_person.html
new file mode 100644
index 0000000..39a78da
--- /dev/null
+++ b/templates/search_form_person.html
@@ -0,0 +1,58 @@
+{% include 'header.html' %}
+<title>Justice Database</title>
+
+<h2>Justice Database</h2>
+
+<p></p><p>
+
+{% with messages = get_flashed_messages() %}
+ {% if messages %}
+ <ul class="flashes">
+ {% for message in messages %}
+ <li>{{ message }}</li>
+ {% endfor %}
+ </ul>
+ {% endif %}
+{% endwith %}
+
+
+{% from "_formhelpers.html" import render_field %}
+
+<!-- NAME -->
+<form method="post">
+ <div class="row g-2">
+ <div class="col-sm-3">
+ {{ form.fist_name_search.label }}
+ </div>
+ <div class="col-sm">
+ {{ form.fist_name_search()|safe }} {{ form.fist_name_search_selection }} {{ form.fist_name_search_actual }}
+ </div>
+ </div>
+
+<!-- SURNAME -->
+ <div class="row g-2">
+ <div class="col-sm-3">
+ {{ form.surname_search.label }}
+ </div>
+ <div class="col-sm">
+ {{ form.surname_search()|safe }} {{ form.surname_search_selection }} {{ form.surname_search_actual }}
+ </div>
+ </div>
+
+<!-- BIRTHDAY -->
+ <div class="row g-2">
+ <div class="col-sm-3">
+ {{ form.birthday.label }}
+ </div>
+ <div class="col-sm">
+ {{ form.birthday }}
+ </div>
+ </div>
+
+ </p>
+ <p><input type="submit" value="Search">
+ </p>
+</form>
+
+<p><a href="/trivia">Další zajímvavé údaje z obchodního resjtříku.</a></p>
+{% include 'footer.html' %} \ No newline at end of file