{% extends "base.html" %} {% load static %} {% load i18n %} {% load humanize %} {% block title %}{% trans "Admin Settings" %} - KAAUH ATS{% endblock %} {% block customCSS %} {% endblock %} {% block content %}

{% trans "Admin Settings Dashboard" %}

{# --- Paged User Table Section --- #}

{% trans "Staff User List" %}

{# 1. Create User Button - Using the enhanced btn-main-action class #} {% trans "Create New User" %}
{% for user in staffs %} {# Column: First Join Date #} {# Column: Last Login Date #} {% empty %} {% endfor %}
{% trans "ID" %} {% trans "Full Name" %} {% trans "Email" %} {% trans "Status" %} {% trans "First Join" %} {% trans "Last Login" %} {% trans "Actions" %}
{{ user.pk }} {{ user.get_full_name|default:user.first_name }} {{ user.email }} {% if user.is_active %} {% trans "Active" %} {% else %} {% trans "Inactive" %} {% endif %} {{ user.date_joined|date:"d M Y" }} {% if user.last_login %} {{ user.last_login|naturaltime }} {% else %} {% trans "Never" %} {% endif %}
{# 2. Change Password Button (Key Icon) #} {% trans 'Change Password' %} {# 3. Delete Button (Trash Icon) #} {% if user.is_active %}
{% csrf_token %} {# The button for DEACTIVATION #}
{% else %}
{% csrf_token %} {# The button for REACTIVATION #}
{% endif %}
{% trans "No staff users found." %}
{% endblock %}