From 9fa9616a36cf9635fd6922cfa5875efdc491c0d0 Mon Sep 17 00:00:00 2001
From: Petr Šmerkl <46304018+SveterCZE@users.noreply.github.com>
Date: Sun, 4 Apr 2021 21:11:19 +0200
Subject: Add feature to display purpose of an entity
---
templates/extract-actual.html | 18 ++++++++++++++++++
templates/extract.html | 19 +++++++++++++++++++
templates/results2.html | 2 --
3 files changed, 37 insertions(+), 2 deletions(-)
(limited to 'templates')
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 %}
+
+ {% if ucel_notes|length > 0 %}
+ {% for i in range (ucel_notes|length) %}
+
+ {% if i == 0%}Účel:{% endif %} |
+ {{ ucel_notes[i] }} |
+
+ {% endfor %}
+ {% endif %}
+
+
{% 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 %}
+
+ {% if row.ucel|length > 0 %}
+ {% for i in range (row.ucel|length) %}
+
+ {% if i == 0%}Účel:{% endif %} |
+ {% 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 %}
+ {{ underlne_style_open|safe }} {{ row.ucel[i].ucel.ucel }} {{ underlne_style_close|safe }} |
+ {{ underlne_style_open|safe }} Zapsáno: {{ row.ucel[i].zapis_datum }} {% if row.ucel[i].vymaz_datum != 0 %} Vymazáno: {{ row.ucel[i].vymaz_datum }} {% endif %} {{ underlne_style_close|safe }} |
+
+ {% endfor %}
+ {% endif %}
+
+
{% 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 %}
-
-