{% extends "base.html" %} {% block title %}Admin Panel - ArchCNTL{% endblock %} {% block page_title %} Admin Panel {% endblock %} {% block header_actions %} {# No specific header actions needed for the admin page #} {% endblock %} {% block main_content %}
{# --- System Settings Section --- #}

System Configuration

{# Registration Enabled Toggle #}

Enable User Registration

Allow new users to register for an account.

{# Verification Required Toggle #}

Require Admin Verification

New accounts must be manually verified before login.

{# Secret Key Display (Read-only) #}

Secret Key

Used for session security. Restart Required if Changed

{{ settings.secret_key_display }}
{# --- System Actions Section --- #}

System Actions

{# Restart Service Card #}

Restart ArchCNTL

Instantly restart the ArchCNTL system service. This will cause a brief disruption.

{# Update Application Card #}

Update ArchCNTL

Updates clients first, then this server. Live progress opens in a modal on this page.

{# --- END: System Actions Section --- #} {# --- User Management Section --- #}

Users

{% for user in users %}

{{ user.username }}

{{ user.email }}

ID {{ user.user_id }}

Clients {{ user.online_clients }}/{{ user.total_clients }}
{{ 'Enabled' if user.is_enabled else 'Disabled' }} {{ 'Verified' if user.is_verified else 'Unverified' }} {{ 'Admin' if user.is_admin else 'User' }}
{% else %}

No registered users found

{% endfor %}
{# --- Edit User Modal --- #} {# --- Confirmation Modal --- #} {# --- Update Available Modal --- #} {# --- Infrastructure Update Modal --- #} {% endblock %} {% block scripts %} {% endblock %}