aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/most_common_addresses.html23
-rw-r--r--templates/most_common_purpose.html24
-rw-r--r--templates/oldest_companies.html23
-rw-r--r--templates/trivia.html13
4 files changed, 83 insertions, 0 deletions
diff --git a/templates/most_common_addresses.html b/templates/most_common_addresses.html
new file mode 100644
index 0000000..8c2277f
--- /dev/null
+++ b/templates/most_common_addresses.html
@@ -0,0 +1,23 @@
+{% include 'header.html' %}
+
+<h1>Nejčastější sídla:</h1>
+<table class="table table-hover">
+ <thead class="thead-dark">
+ <tr>
+ <th scope="col">#</th>
+ <th scope="col">Adresa</th>
+ <th scope="col">Frekvence</th>
+ </tr>
+ </thead>
+ <tbody>
+ {% for i in range (most_common_addresses|length) %}
+ <tr>
+ <th scope = "row">{{ i + 1 }}</th>
+ <td>{{ most_common_addresses[i][0] }}</td>
+ <td>{{ most_common_addresses[i][1] }}</td>
+ </tr>
+ {% endfor %}
+ </tbody>
+</table>
+
+{% include 'footer.html' %} \ No newline at end of file
diff --git a/templates/most_common_purpose.html b/templates/most_common_purpose.html
new file mode 100644
index 0000000..99bdc77
--- /dev/null
+++ b/templates/most_common_purpose.html
@@ -0,0 +1,24 @@
+{% include 'header.html' %}
+
+<h1>Nejčastější účel:</h1>
+
+<table class="table table-hover">
+ <thead class="thead-dark">
+ <tr>
+ <th scope="col">#</th>
+ <th scope="col">Účel</th>
+ <th scope="col">Frekvence</th>
+ </tr>
+ </thead>
+ <tbody>
+ {% for i in range (most_common_purpose|length) %}
+ <tr>
+ <th scope = "row">{{ i + 1 }}</th>
+ <td>{{ most_common_purpose[i][0] }}</td>
+ <td>{{ most_common_purpose[i][1] }}</td>
+ </tr>
+ {% endfor %}
+ </tbody>
+</table>
+
+{% include 'footer.html' %} \ No newline at end of file
diff --git a/templates/oldest_companies.html b/templates/oldest_companies.html
new file mode 100644
index 0000000..443ad1c
--- /dev/null
+++ b/templates/oldest_companies.html
@@ -0,0 +1,23 @@
+{% include 'header.html' %}
+
+<h1>Nejstarší společnosti:</h1>
+<table class="table table-hover">
+ <thead class="thead-dark">
+ <tr>
+ <th scope="col">#</th>
+ <th scope="col">Jméno</th>
+ <th scope="col">Datum založení</th>
+ </tr>
+ </thead>
+ <tbody>
+ {% for i in range (oldest_companies|length) %}
+ <tr>
+ <th scope = "row">{{ i + 1 }}</th>
+ <td><a href="{{ oldest_companies[i][2] }}">{{ oldest_companies[i][0] }}</a></td>
+ <td>{{ oldest_companies[i][1] }}</td>
+ </tr>
+ {% endfor %}
+ </tbody>
+</table>
+
+{% include 'footer.html' %} \ No newline at end of file
diff --git a/templates/trivia.html b/templates/trivia.html
new file mode 100644
index 0000000..ced2c75
--- /dev/null
+++ b/templates/trivia.html
@@ -0,0 +1,13 @@
+{% include 'header.html' %}
+
+<h1>Zajímavosti z rejstříku</h1>
+
+<p>Počet registrovaných osob: {{ number_entities }}</p>
+
+<p>Další zajímvavé údaje z obchodního resjtříku:</p>
+<p><a href="/most_common_addresses">Seznam nejčastějších sídel</a></p>
+<p><a href="/oldest_companies">Seznam nejstarších společností</a></p>
+<p><a href="/most_common_purpose">Seznam nejčastějších účelů</a></p>
+
+
+{% include 'footer.html' %} \ No newline at end of file