{# Extends the base layout template #} {% extends "base.html" %} {# --- Page Title Block --- #} {% block title %}{{ super() }} - Configure Allowlist: {{ server_name }}{% endblock %} {# --- Head Scripts Block --- #} {% block head_scripts %} {# Core utilities (showStatusMessage, sendServerActionRequest) #} {# Specific JS for allowlist actions (add/remove/refresh) #} {% endblock %} {# --- Main Content Block --- #} {% block content %}

Configure Allowlist

{# ADD data-server-name to this paragraph #}

Server: {{ server_name }} {% if new_install %}
(Step 2 of 4 for New Installation) {% endif %}

{# --- Status Message Area --- #}
{# Server-side flash messages (handled by base.html) #} {# {% with messages = get_flashed_messages(with_categories=true) %} ... {% endwith %} #} {# --- Section for Adding New Players --- #}

Add Players

Enter player names (Gamertags), one per line, to add them to the allowlist.

Ignore Player Limit: Allow the player(s) being added to join even if the server is full?
{# Defaults to unchecked (false) #}
{# Associated hidden input to ensure 'false' is sent when checkbox is unchecked #}
{# Button triggers the addAllowlistPlayers JS function #}
{# --- Section to Display Current Allowlist --- #}

Current Allowlist

{# This list is now fully populated by fetchAndUpdateAllowlistDisplay() in allowlist.js #}
{# --- Navigation Actions (Conditional) --- #} {% endblock %} {# --- Page-Specific JavaScript Block (at end of body) --- #} {# REMOVED - Logic moved inside allowlist.js #} {% block body_scripts %} {% endblock %}