diff options
Diffstat (limited to 'app/templates')
| -rw-r--r-- | app/templates/admin/index.html | 4 | ||||
| -rw-r--r-- | app/templates/admin/manage_users.html | 30 |
2 files changed, 34 insertions, 0 deletions
diff --git a/app/templates/admin/index.html b/app/templates/admin/index.html index 136d1d5..c5f5e6b 100644 --- a/app/templates/admin/index.html +++ b/app/templates/admin/index.html @@ -10,5 +10,9 @@ <a href="{{ url_for("admin.manage_tasks") }}">View and manage tasks</a> </li> + <li> + <a href="{{ url_for("admin.manage_users") }}">View and manage + users</a> + </li> </ul> {% endblock %} diff --git a/app/templates/admin/manage_users.html b/app/templates/admin/manage_users.html new file mode 100644 index 0000000..fcfc86c --- /dev/null +++ b/app/templates/admin/manage_users.html @@ -0,0 +1,30 @@ +{% extends "base.html" %} + +{% block app_content %} +<h1>Manage Users</h1> +<br> +<h1>User Overview</h1> +<article class="overview"> + <table class="table table-striped"> + <thead class="thead-dark"> + <th scope="col">ID</th> + <th scope="col">Username</th> + <th scope="col">Email</th> + <th scope="col">Confirmed</th> + <th scope="col">Last Active</th> + <th scope="col">Admin</th> + </thead> + {% for user in users %} + <tr> + <th scope="row">{{ user.id }}</th> + <td>{{ user.username }}</td> + <td>{{ user.email }}</td> + <td>{% if user.is_confirmed %}Yes{% else %}No{% endif %}</td> + <td>{{ user.last_active }}</td> + <td>{% if user.is_admin %}Yes{% else %}{% endif %}</td> + </tr> + {% endfor %} + </tr> + </table> +</article> +{% endblock %} |
