tmpl-fastapi/templates/table.html
2023-02-20 12:09:43 +04:00

20 lines
507 B
HTML

{% extends "base.html" %}
{% block title %}Database{% endblock %}
{% block content %}
<h1>Sample database</h1>
<p><a href="/add">Add a user</a></p>
<table>
<tbody>
{% for row in rows %}
<tr>
<td>{{ row.id }}</td>
<td>{{ row.email }}</td>
<td>{{ row.name }}</td>
<td>{{ row.age }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endblock %}