tmpl-fastapi/templates/table.html

21 lines
507 B
HTML
Raw Normal View History

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