diff options
author | Petr Šmerkl <46304018+SveterCZE@users.noreply.github.com> | 2022-01-30 12:18:51 +0100 |
---|---|---|
committer | Petr Šmerkl <46304018+SveterCZE@users.noreply.github.com> | 2022-01-30 12:18:51 +0100 |
commit | b7bcefdffaec476dcc7d67610c7007e90cc89908 (patch) | |
tree | a814075e5495e1bf004d7ad2e03820575dd0fb36 /templates | |
parent | cabd76663ea295c53d3875292aaf82bcd44b6340 (diff) | |
download | justice-b7bcefdffaec476dcc7d67610c7007e90cc89908.tar.gz |
add a feature to display the youngest registered persons
Diffstat (limited to 'templates')
-rw-r--r-- | templates/trivia.html | 1 | ||||
-rw-r--r-- | templates/youngest_persons.html | 31 |
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 |