Create templates/users.html
Browse files- templates/users.html +19 -0
templates/users.html
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{% extends 'base.html' %}
|
2 |
+
{% block content %}
|
3 |
+
<h2>Danh sách Người dùng</h2>
|
4 |
+
<form method="POST">
|
5 |
+
<label for="page_password">Mật khẩu trang:</label>
|
6 |
+
<input type="password" id="page_password" name="page_password" required>
|
7 |
+
<button type="submit">Tải danh sách người dùng</button>
|
8 |
+
</form>
|
9 |
+
|
10 |
+
{% if users %}
|
11 |
+
<ul>
|
12 |
+
{% for user in users %}
|
13 |
+
<li>ID: {{ user.id }} - Tên: {{ user.name }} - Email: {{ user.email }}</li>
|
14 |
+
{% endfor %}
|
15 |
+
</ul>
|
16 |
+
{% else %}
|
17 |
+
<p>Không có người dùng nào được tìm thấy hoặc cần nhập mật khẩu trang để xem.</p>
|
18 |
+
{% endif %}
|
19 |
+
{% endblock %}
|