aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorPetr Šmerkl <46304018+SveterCZE@users.noreply.github.com>2021-04-15 23:42:22 +0200
committerPetr Šmerkl <46304018+SveterCZE@users.noreply.github.com>2021-04-15 23:42:22 +0200
commitc1e3a9f4c0b7cdb03fbd90474d9576dc79438bea (patch)
treea1cf13fdbeaa053e063f244eae7939cecb9d3a18 /templates
parent8e8f91be5f5c3089255630f64b7be440a91994f6 (diff)
downloadjustice-c1e3a9f4c0b7cdb03fbd90474d9576dc79438bea.tar.gz
minor tweaks. work to progress
Diffstat (limited to 'templates')
-rw-r--r--templates/extract.html39
-rw-r--r--templates/oldest_companies.html4
2 files changed, 8 insertions, 35 deletions
diff --git a/templates/extract.html b/templates/extract.html
index fb4be73..034bdb2 100644
--- a/templates/extract.html
+++ b/templates/extract.html
@@ -163,7 +163,7 @@
{% set splaceni_typ_description = row.zakladni_kapital[i].splaceni_hodnota %}
{% endif %}
- <td>{{ underlne_style_open|safe }} {{ vklad_typ_description }} {{ vklad_typ_symbol }} {% if splaceni_typ_description != "0" %} <br> Splaceno: {{ splaceni_typ_description }} {{ splaceni_typ_symbol }} {% endif %} {{ underlne_style_close|safe }}</td>
+ <td>{{ underlne_style_open|safe }} {% for elem in row.zakladni_kapital[i].my_rep() %} {{elem}}<br>{% endfor %} {{ underlne_style_close|safe }}</td>
<td>{{ underlne_style_open|safe }} Zapsáno: {{ row.zakladni_kapital[i].zapis_datum }} {% if row.zakladni_kapital[i].vymaz_datum != 0 %} <br> Vymazáno: {{ row.zakladni_kapital[i].vymaz_datum }} {% endif %} {{ underlne_style_close|safe }}</td>
</tr>
{% endfor %}
@@ -471,34 +471,6 @@
{% if row.spolecnici[i].podily|length > 0 %}
{% for j in range (row.spolecnici[i].podily|length) %}
- <!-- Set type of deposit -->
- {% if row.spolecnici[i].podily[j].vklad_typ == "KORUNY" %}
- {% set vklad_typ_string = "Kč" %}
- {% elif row.spolecnici[i].podily[j].vklad_typ == "EURA" %}
- {% set vklad_typ_string = "Euro" %}
- {% else %}
- {% set vklad_typ_string = "" %}
- {% endif %}
-
- <!-- Set type of repaid contribution -->
- {% if row.spolecnici[i].podily[j].splaceni_typ == "KORUNY" %}
- {% set splaceni_typ_string = "Kč" %}
- {% elif row.spolecnici[i].podily[j].splaceni_typ == "PROCENTA" %}
- {% set splaceni_typ_string = "%" %}
- {% elif row.spolecnici[i].podily[j].splaceni_typ == "EURA" %}
- {% set splaceni_typ_string = "Euro" %}
- {% else %}
- {% set splaceni_typ_string = "" %}
- {% endif %}
-
- <!-- Set type of share -->
- {% if row.spolecnici[i].podily[j].souhrn_typ == "PROCENTA" %}
- {% set souhrn_typ_string = "%" %}
- {% else %}
- {% set souhrn_typ_string = "" %}
- {% endif %}
-
-
<tr>
<td style = padding-left:4em>Podíl:</td>
{% if row.spolecnici[i].podily[j].vymaz_datum != 0 %}
@@ -508,10 +480,11 @@
{% set underlne_style_open = "" %}
{% set underlne_style_close = "" %}
{% endif %}
- <td>{{ underlne_style_open|safe }}Vklad: {{ row.spolecnici[i].podily[j].vklad_text }} {{ vklad_typ_string }}<br>
- Splaceno: {{ row.spolecnici[i].podily[j].splaceni_text }} {{ splaceni_typ_string }}<br>
- {% if row.spolecnici[i].podily[j].souhrn_text != "0"%}Podíl: {{ row.spolecnici[i].podily[j].souhrn_text }} {{ souhrn_typ_string }}{% endif %}
- {% if row.spolecnici[i].podily[j].druh_podilu.druh_podilu != "0" %}<br>Druh podílu: {{ row.spolecnici[i].podily[j].druh_podilu.druh_podilu }}{% endif %}{{ underlne_style_close|safe }}
+ <td>{{ underlne_style_open|safe }}
+ {% for elem in row.spolecnici[i].podily[j].my_rep() %}
+ {{ elem }}<br>
+ {% endfor %}
+ {{ underlne_style_close|safe }}
</td>
<td>{{ underlne_style_open|safe }}Zapsáno: {{ row.spolecnici[i].podily[j].zapis_datum }} {% if row.spolecnici[i].podily[j].vymaz_datum != 0 %}<br>Vymazáno: {{ row.spolecnici[i].podily[j].vymaz_datum }}{% endif %}{{ underlne_style_close|safe }}</td>
</tr>
diff --git a/templates/oldest_companies.html b/templates/oldest_companies.html
index ab25e60..f79e954 100644
--- a/templates/oldest_companies.html
+++ b/templates/oldest_companies.html
@@ -1,11 +1,11 @@
{% include 'header.html' %}
-<h1>Nejstarší společnosti:</h1>
+<h1>Nejstarší právnické osoby:</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">Název</th>
<th scope="col">Datum založení</th>
</tr>
</thead>