aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorPetr Šmerkl <46304018+SveterCZE@users.noreply.github.com>2021-04-04 21:11:19 +0200
committerPetr Šmerkl <46304018+SveterCZE@users.noreply.github.com>2021-04-04 21:11:19 +0200
commit9fa9616a36cf9635fd6922cfa5875efdc491c0d0 (patch)
treecd3deb62cbabeda9e1ab18f8e40d4d05966aaa65 /templates
parent2d8d74a12ef5c3aadd9981e2750c7dd75f5e23af (diff)
downloadjustice-9fa9616a36cf9635fd6922cfa5875efdc491c0d0.tar.gz
Add feature to display purpose of an entity
Diffstat (limited to 'templates')
-rw-r--r--templates/extract-actual.html18
-rw-r--r--templates/extract.html19
-rw-r--r--templates/results2.html2
3 files changed, 37 insertions, 2 deletions
diff --git a/templates/extract-actual.html b/templates/extract-actual.html
index ab19efc..af8e810 100644
--- a/templates/extract-actual.html
+++ b/templates/extract-actual.html
@@ -21,6 +21,13 @@
{% endif %}
{% endfor %}
+{% set ucel_notes = [] %}
+{% for i in range (row.ucel|length) %}
+ {% if row.ucel[i].vymaz_datum == 0 %}
+ {% set ucel_notes = ucel_notes.append(row.ucel[i].ucel.ucel) %}
+ {% endif %}
+{% endfor %}
+
{% set zakladni_kapital_notes = [] %}
{% for i in range (row.zakladni_kapital|length) %}
{% if row.zakladni_kapital[i].vymaz_datum == 0 %}
@@ -255,6 +262,17 @@
{% endif %}
<!-- END Display areas of activities -->
+ <!-- Display purpose -->
+ {% if ucel_notes|length > 0 %}
+ {% for i in range (ucel_notes|length) %}
+ <tr>
+ <td>{% if i == 0%}Účel:{% endif %}</td>
+ <td>{{ ucel_notes[i] }}</td>
+ </tr>
+ {% endfor %}
+ {% endif %}
+ <!-- END Display purpose -->
+
<!-- Display statutory bodies -->
{% if statutarni_organ_notes|length > 0 %}
{% for i in range (statutarni_organ_notes|length) %}
diff --git a/templates/extract.html b/templates/extract.html
index 2bacb06..871b172 100644
--- a/templates/extract.html
+++ b/templates/extract.html
@@ -208,6 +208,25 @@
{% endif %}
<!-- END Display areas of activities -->
+ <!-- Display purpose -->
+ {% if row.ucel|length > 0 %}
+ {% for i in range (row.ucel|length) %}
+ <tr>
+ <td>{% if i == 0%}Účel:{% endif %}</td>
+ {% if row.ucel[i].vymaz_datum != 0 %}
+ {% set underlne_style_open = undedrline_open_deleted %}
+ {% set underlne_style_close = undedrline_closed_deleted %}
+ {% else %}
+ {% set underlne_style_open = "" %}
+ {% set underlne_style_close = "" %}
+ {% endif %}
+ <td>{{ underlne_style_open|safe }} {{ row.ucel[i].ucel.ucel }} {{ underlne_style_close|safe }}</td>
+ <td>{{ underlne_style_open|safe }} Zapsáno: {{ row.ucel[i].zapis_datum }} {% if row.ucel[i].vymaz_datum != 0 %} <br> Vymazáno: {{ row.ucel[i].vymaz_datum }} {% endif %} {{ underlne_style_close|safe }}</td>
+ </tr>
+ {% endfor %}
+ {% endif %}
+ <!-- END Display purpose -->
+
<!-- Display statutory bodies -->
{% if row.statutarni_organ_text|length > 0 %}
{% for i in range (row.statutarni_organ_text|length) %}
diff --git a/templates/results2.html b/templates/results2.html
index 84b8326..5fb4e7f 100644
--- a/templates/results2.html
+++ b/templates/results2.html
@@ -42,8 +42,6 @@
{% endif %}
{% endfor %}
-
-
<table class= "{{table_style}}" style="width: 100%">
<p></p>
<tr>