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/youngest_persons.html | |
parent | cabd76663ea295c53d3875292aaf82bcd44b6340 (diff) | |
download | justice-b7bcefdffaec476dcc7d67610c7007e90cc89908.tar.gz |
add a feature to display the youngest registered persons
Diffstat (limited to 'templates/youngest_persons.html')
-rw-r--r-- | templates/youngest_persons.html | 31 |
1 files changed, 31 insertions, 0 deletions
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 |