tmpl-fastapi/templates/table.html

21 lines
507 B
HTML
Raw Permalink Normal View History

{% extends "base.html" %}
{% block title %}Database{% endblock %}
{% block content %}
<h1>Sample database</h1>
2023-02-20 11:09:43 +03:00
<p><a href="/add">Add a user</a></p>
<table>
<tbody>
{% for row in rows %}
<tr>
2023-02-20 11:09:43 +03:00
<td>{{ row.id }}</td>
<td>{{ row.email }}</td>
<td>{{ row.name }}</td>
<td>{{ row.age }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endblock %}