2023-02-18 20:01:13 +04:00
|
|
|
{% 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>
|
2023-02-18 20:01:13 +04:00
|
|
|
<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>
|
2023-02-18 20:01:13 +04:00
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
{% endblock %}
|