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 %} +
| ID | +Username | +Nome Completo | +Ruolo | +Stato | +Registrato | +Ultimo 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 %} + | +
Non ci sono utenti registrati nel sistema.
+