aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/trivia.html1
-rw-r--r--templates/youngest_persons.html31
2 files changed, 32 insertions, 0 deletions
diff --git a/templates/trivia.html b/templates/trivia.html
index 643ee2f..fcfc01e 100644
--- a/templates/trivia.html
+++ b/templates/trivia.html
@@ -12,6 +12,7 @@
<p><a href="/most_common_activity">Seznam nejčastějších předmětů činnosti</a></p>
<p><a href="/most_common_degree">Seznam nejčastějších titulů</a></p>
<p><a href="/oldest_persons">Seznam nejstarších osob</a></p>
+<p><a href="/youngest_persons">Seznam nejmladších osob</a></p>
<p><a href="/longest_registered_persons">Seznam nejdéle registrovaných osob</a></p>
{% include 'footer.html' %} \ No newline at end of file
diff --git a/templates/youngest_persons.html b/templates/youngest_persons.html
new file mode 100644
index 0000000..d800340
--- /dev/null
+++ b/templates/youngest_persons.html
@@ -0,0 +1,31 @@
+{% include 'header.html' %}
+
+<h1>Nejmladší 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 a příjmení</th>
+ <th scope="col">Datum narození</th>
+ <th scope="col">Adresa</th>
+ <th scope="col">Funkce</th>
+ <th scope="col">Ve společnosti</th>
+ <th scope="col">Datum zápisu</th>
+ </tr>
+ </thead>
+ <tbody>
+ {% for i in range (youngest_persons_list|length) %}
+ <tr>
+ <th scope = "row">{{ i + 1 }}</th>
+ <td>{% if youngest_persons_list[i][0] != "0" %} {{ youngest_persons_list[i][0] }} {% endif %}{{ youngest_persons_list[i][1] }}</a></td>
+ <td>{{ youngest_persons_list[i][2] }}</td>
+ <td>{{ youngest_persons_list[i][5] }}</td>
+ <td>{{ youngest_persons_list[i][7] }}</td>
+ <td>{{ youngest_persons_list[i][3] }}, IČ: <a href="{{ youngest_persons_list[i][4] }}">{{ youngest_persons_list[i][4] }}</a></td>
+ <td>{{ youngest_persons_list[i][6] }}</td>
+ </tr>
+ {% endfor %}
+ </tbody>
+</table>
+
+{% include 'footer.html' %} \ No newline at end of file