diff --git a/templates/user/admin_settings.html b/templates/user/admin_settings.html index 30b6911..dd5098c 100644 --- a/templates/user/admin_settings.html +++ b/templates/user/admin_settings.html @@ -1,25 +1,25 @@ {% extends "base.html" %} {% load static %} {% load i18n %} +{% load humanize %} {% block title %}{% trans "Admin Settings" %} - KAAUH ATS{% endblock %} + {% block customCSS %} -{% block styles %} {% endblock %} {% block content %} -
| {% trans "ID" %} | -{% trans "Username" %} | -{% trans "Full Name" %} | -{% trans "Email" %} | -{% trans "Status" %} | -{% trans "Actions" %} | +{% trans "ID" %} | +{% trans "Full Name" %} | +{% trans "Email" %} | +{% trans "Status" %} | +{% trans "First Join" %} | +{% trans "Last Login" %} | +{% trans "Actions" %} | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ user.pk }} | -{{ user.username }} | {{ user.get_full_name|default:user.first_name }} | {{ user.email }} | -+ | {% if user.is_active %} - {% trans "Active" %} + {% trans "Active" %} {% else %} - {% trans "Inactive" %} + {% trans "Inactive" %} {% endif %} | -- - {# 1. Edit Button (Pencil Icon) #} - - - + + {# Column: First Join Date #} + | + {{ user.date_joined|date:"d M Y" }} + | + + {# Column: Last Login Date #} ++ {% if user.last_login %} + {{ user.last_login|naturaltime }} + {% else %} + {% trans "Never" %} + {% endif %} + | + +
+
+ {# 1. Edit Button (Pencil Icon) #}
+
+
+
- {# 2. Change Password Button (Key Icon) #}
- {# NOTE: You must define a URL named 'user_password_change' that accepts the user ID #}
-
-
-
+ {# 2. Change Password Button (Key Icon) #}
+
+
+
- {# 3. Delete Button (Trash Icon) #}
- {# NOTE: You must define a URL named 'user_delete' that accepts the user ID #}
-
-
-
+ {# 3. Delete Button (Trash Icon) #}
+
+
+
+
|
||||
| {% trans "No staff users found." %} | +{% trans "No staff users found." %} | ||||||||||||