diff --git a/templates/forms/application_submit_form b/templates/forms/application_submit_form.html similarity index 100% rename from templates/forms/application_submit_form rename to templates/forms/application_submit_form.html diff --git a/templates/user/admin_settings.html b/templates/user/admin_settings.html index eb9b54f..b9936dd 100644 --- a/templates/user/admin_settings.html +++ b/templates/user/admin_settings.html @@ -4,7 +4,8 @@ {% load humanize %} {% block title %}{% trans "Admin Settings" %} - KAAUH ATS{% endblock %} - {% block customCSS %} + +{% block customCSS %} {% endblock %} @@ -121,11 +142,11 @@ {% block content %} -
+

- {% trans "Admin Settings Dashboard" %} + {% trans "Admin Settings Dashboard" %}

@@ -133,7 +154,7 @@ {# --- Paged User Table Section --- #}
-
+

{% trans "Staff User List" %}

@@ -155,7 +176,7 @@ {% trans "Status" %} {% trans "First Join" %} {% trans "Last Login" %} - {% trans "Actions" %} + {% trans "Actions" %} @@ -164,11 +185,13 @@ {{ user.pk }} {{ user.get_full_name|default:user.first_name }} {{ user.email }} + + {# Column: Status Badge (Improved Styling) #} {% if user.is_active %} - {% trans "Active" %} + {% trans "Active" %} {% else %} - {% trans "Inactive" %} + {% trans "Inactive" %} {% endif %} @@ -182,63 +205,54 @@ {% if user.last_login %} {{ user.last_login|naturaltime }} {% else %} - {% trans "Never" %} + — {% endif %} + {# Column: Actions #}
+ {% comment %} {# 1. Edit/Detail Button (Pencil Icon) - Added common action #} + + + {% endcomment %} {# 2. Change Password Button (Key Icon) #} - {% trans 'Change Password' %} - {# 3. Delete Button (Trash Icon) #} - + {# 3. Toggle Status Button (Improved Button Styling) #} {% if user.is_active %} - - -
+ {% csrf_token %} - - {# The button for DEACTIVATION #} -
- {% else %} - -
+ {% csrf_token %} - - {# The button for REACTIVATION #} - - - - - +
- {% endif %}
{% empty %} - {% trans "No staff users found." %} + {% trans "No staff users found." %} {% endfor %}
- + {# NOTE: Add Pagination links here if the `staffs` object is a Paginator object #} +