From 7394e150f10e4b959df4d3ad90ee042446e66b61 Mon Sep 17 00:00:00 2001 From: BluLupo Date: Mon, 22 Sep 2025 12:59:26 +0200 Subject: [PATCH] Add missing users.html template for dashboard --- templates/dashboard/users.html | 157 +++++++++++++++++++++++++++++++++ 1 file changed, 157 insertions(+) create mode 100644 templates/dashboard/users.html diff --git a/templates/dashboard/users.html b/templates/dashboard/users.html new file mode 100644 index 0000000..1c2d76f --- /dev/null +++ b/templates/dashboard/users.html @@ -0,0 +1,157 @@ +{% extends "dashboard/base.html" %} + +{% block title %}Gestione Utenti - Dashboard{% endblock %} + +{% block dashboard_content %} +
+

+ + Gestione Utenti +

+
+ {{ pagination.total_items if pagination else 0 }} utenti totali +
+
+ +
+ {% if users %} +
+ + + + + + + + + + + + + + + {% for user in users %} + + + + + + + + + + + {% endfor %} + +
IDUsernameNome CompletoEmailRuoloStatoRegistratoUltimo Accesso
{{ user.id }} + {{ user.username }} + {% if user.is_admin %} + Admin + {% endif %} + {{ user.full_name or '-' }}{{ user.email }} + + {{ user.role.title() }} + + + + {% if user.is_active %}Attivo{% else %}Inattivo{% endif %} + + + {% if user.created_at %} + {{ user.created_at.strftime('%d/%m/%Y %H:%M') }} + {% else %} + - + {% endif %} + + {% if user.last_login %} + {{ user.last_login.strftime('%d/%m/%Y %H:%M') }} + {% else %} + Mai + {% endif %} +
+
+ + + {% if pagination and pagination.total_pages > 1 %} + + {% endif %} + {% else %} +
+ +

Nessun utente trovato

+

Non ci sono utenti registrati nel sistema.

+
+ {% endif %} +
+ + +{% endblock %} \ No newline at end of file