aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorPetr Šmerkl <46304018+SveterCZE@users.noreply.github.com>2021-04-30 23:37:02 +0200
committerPetr Šmerkl <46304018+SveterCZE@users.noreply.github.com>2021-04-30 23:37:02 +0200
commit53e6b03b8f68b85c10a2c7c4412a792b5bd4755d (patch)
treebbbedb1d079edaa4b9b441d6ab42e91503426586 /templates
parentac2215cbbb62a1e4f445ac779f9334791f3b8dbd (diff)
downloadjustice-53e6b03b8f68b85c10a2c7c4412a792b5bd4755d.tar.gz
work in progress on entity search in company role
Diffstat (limited to 'templates')
-rw-r--r--templates/header.html2
-rw-r--r--templates/results_entities.html10
-rw-r--r--templates/search_form_entity.html59
-rw-r--r--templates/search_form_person.html1
4 files changed, 70 insertions, 2 deletions
diff --git a/templates/header.html b/templates/header.html
index 14b8bda..5b50d1a 100644
--- a/templates/header.html
+++ b/templates/header.html
@@ -13,7 +13,7 @@
<tr>
<td><a href="/">Veřejný rejstřík podle subjektů</a></td>
<td><a href="/osoby">Veřejný rejstřík podle fyzických osob v angažmá</a></td>
- <td>Veřejný rejstřík podle právnických osob v angažmá (coming soon)</td>
+ <td><a href="/entity">Veřejný rejstřík podle právnických osob v angažmá</a></td>
<td><a href="/trivia">Zajímavosti z obchodního rejstříku</a></td>
</tr>
</table> \ No newline at end of file
diff --git a/templates/results_entities.html b/templates/results_entities.html
new file mode 100644
index 0000000..d81086e
--- /dev/null
+++ b/templates/results_entities.html
@@ -0,0 +1,10 @@
+{% if show_form == True %}
+ {% include 'search_form_entity.html' %}
+{% else %}
+ {% include 'header.html' %}
+{% endif %}
+
+{{ results }}
+
+
+{% include 'footer.html' %} \ No newline at end of file
diff --git a/templates/search_form_entity.html b/templates/search_form_entity.html
new file mode 100644
index 0000000..f3ae970
--- /dev/null
+++ b/templates/search_form_entity.html
@@ -0,0 +1,59 @@
+{% 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.entity_name_search.label }}
+ </div>
+ <div class="col-sm">
+ {{ form.entity_name_search()|safe }} {{ form.entity_name_search_selection }} {{ form.entity_name_search_actual }}
+ </div>
+ </div>
+
+<!-- ID No. -->
+ <div class="row g-2">
+ <div class="col-sm-3">
+ {{ form.entity_number_search.label }}
+ </div>
+ <div class="col-sm">
+ {{ form.entity_number_search()|safe }} {{ form.entity_number_search_selection }} {{ form.entity_number_search_actual }}
+ </div>
+ </div>
+
+<!-- Foreign ID No. -->
+ <div class="row g-2">
+ <div class="col-sm-3">
+ {{ form.foreign_entity_number_search.label }}
+ </div>
+ <div class="col-sm">
+ {{ form.foreign_entity_number_search()|safe }} {{ form.foreign_entity_number_search_selection }} {{ form.foreign_entity_number_search_actual }}
+ </div>
+ </div>
+
+ </p>
+ <p><input type="submit" value="Search">
+ </p>
+</form>
+
+{% include 'footer.html' %}
+
+
diff --git a/templates/search_form_person.html b/templates/search_form_person.html
index 04d8544..30d4865 100644
--- a/templates/search_form_person.html
+++ b/templates/search_form_person.html
@@ -64,7 +64,6 @@
</p>
</form>
-<p><a href="/trivia">Další zajímvavé údaje z obchodního resjtříku.</a></p>
{% include 'footer.html' %}