blob: d5e360f3531011e9437330b44097596d4268e836 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
|
{% include 'header.html' %}
{% include 'search_form.html' %}
<p><b>Počet nalezených subjektů: {{ results|length }}</b></p>
{% for row in results %}
{% set insolvency_notes = [] %}
{% for elem in row.insolvence %}
{% set insolvency_notes = insolvency_notes.append(elem.insolvency_event) %}
{% endfor %}
{% set zapis_split = row.zapis.split("-") %}
{% if zapis_split[1] == "01" %}
{% set mesic = "ledna" %}
{% elif zapis_split[1] == "02" %}
{% set mesic = "února" %}
{% elif zapis_split[1] == "03" %}
{% set mesic = "března" %}
{% elif zapis_split[1] == "04" %}
{% set mesic = "dubna" %}
{% elif zapis_split[1] == "05" %}
{% set mesic = "května" %}
{% elif zapis_split[1] == "06" %}
{% set mesic = "června" %}
{% elif zapis_split[1] == "07" %}
{% set mesic = "července" %}
{% elif zapis_split[1] == "08" %}
{% set mesic = "srpna" %}
{% elif zapis_split[1] == "09" %}
{% set mesic = "září" %}
{% elif zapis_split[1] == "10" %}
{% set mesic = "října" %}
{% elif zapis_split[1] == "11" %}
{% set mesic = "listopadu" %}
{% elif zapis_split[1] == "12" %}
{% set mesic = "prosince" %}
{% endif %}
{% if zapis_split[2][0] == "0" %}
{% set den = zapis_split[2][1] %}
{% else %}
{% set den = zapis_split[2] %}
{% endif %}
{% if row.soud == "MSPH" %}
{% set soud = "Městského soudu v Praze" %}
{% elif row.soud == "KSCB" %}
{% set soud = "Krajského soudu v Českých Budějovicích" %}
{% elif row.soud == "KSOS" %}
{% set soud = "Krajského soudu v Ostravě" %}
{% elif row.soud == "KSPL" %}
{% set soud = "Krajského soudu v Plzni" %}
{% elif row.soud == "KSBR" %}
{% set soud = "Krajského soudu v Brně" %}
{% elif row.soud == "KSHK" %}
{% set soud = "Krajského soudu v Hradci Králové" %}
{% elif row.soud == "KSUL" %}
{% set soud = "Krajského soudu v Ústí nad Labem" %}
{% endif %}
{% if insolvency_notes|length > 0 %}
{% set table_style = "table table-danger" %}
{% elif loop.index % 2 == 0 %}
{% set table_style = "table table-light" %}
{% else %}
{% set table_style = "table table-secondary" %}
{% endif %}
{% if row.ico|length != 8 %}
{% set ico_buffer = [] %}
{% for i in range (8 - row.ico|length) %}
{% set ico_buffer = ico_buffer.append("0") %}
{% endfor %}
{% else %}
{% set ico_buffer = "" %}
{% endif %}
<table class= "{{table_style}}" style="width: 100%">
<p></p>
<tr>
<td style="width:15%">Název subjektu:</td>
<td style="width:50%"><b>{{ row.nazev }}</b></td>
<td style="width:10%">IČO:</td>
<td style="width:25%"><b>{{ ico_buffer|join("") }}{{ row.ico }}</b></td>
</tr>
<tr>
<td>Spisová značka:</td>
<td>{{ row.oddil }} {{ row.vlozka }} vedená u {{ soud }}</td>
<td>Den zápisu:</td>
<td>{{den}}. {{mesic}} {{zapis_split[0]}}</td>
</tr>
<tr>
<td>Sídlo:</td>
<td>{{ row.sidlo }}</td>
<td><a href="/{{ row.ico }}">Úplný výpis</a></td>
<td><a href="/{{ row.ico }}-actual">Aktuální výpis</a></td>
</tr>
{% if insolvency_notes|length > 0 %}
{% for i in range (insolvency_notes|length) %}
<tr>
<td colspan="4">{{ insolvency_notes[i] }}</td>
</tr>
{% endfor %}
{% endif %}
</table>
{% endfor %}
{% include 'footer.html' %}
|