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

{% trans "Admin Settings Dashboard" %}

{# --- User Management Section (Cards) --- #}

{% trans "User & Access Management" %}

{# 1. Manage/Update Users (Detail Page) - Placeholder link for the table below #} {# 2. Create User #} {# 3. Change Password (Centralized/Admin-forced) #}
{# --- Paged User Table Section --- #}

{% trans "Staff User List" %}

{# Assumes 'page_obj' contains the paginated queryset from the view #} {% for user in staffs %} {% empty %} {% endfor %}
{% trans "ID" %} {% trans "Username" %} {% trans "Full Name" %} {% trans "Email" %} {% trans "Status" %} {% trans "Actions" %}
{{ user.pk }} {{ user.username }} {{ user.get_full_name|default:user.first_name }} {{ user.email }} {% if user.is_active %} {% trans "Active" %} {% else %} {% trans "Inactive" %} {% 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 #} {# 3. Delete Button (Trash Icon) #} {# NOTE: You must define a URL named 'user_delete' that accepts the user ID #}
{% trans "No staff users found." %}
{# --- Pagination Controls --- #} {% if page_obj.has_other_pages %} {% endif %}
{# --- Permissions & Group Management Section --- #}

{% trans "Role & Permissions" %}

{# 4. Manage Groups #} {# 5. Manage Permissions #}
{% endblock %}