{# Extends the base layout template #} {% extends "base.html" %} {# --- Page Title Block --- #} {% block title %}{{ super() }} - Restore Menu: {{ server_name }}{% endblock %} {# --- Head Scripts Block --- #} {# Include JavaScript files needed for this page's actions (utils, backup_restore) #} {% block head_scripts %} {# backup_restore.js contains triggerRestoreAll and potentially other handlers #} {% endblock %} {# --- Main Content Block --- #} {% block content %} {# Main heading for the page #}

Restore Options

{# Display the server context #}

Server: {{ server_name }}

{# --- Status Message Area --- #} {# Targeted by JavaScript (showStatusMessage) #}
{# Server-side flash messages (handled by base.html) #} {# Section containing the restore options #}

Choose a restore action:

{# Group for restore action buttons/forms #}
{# Option 1: Buttons submitting forms to navigate to selection page #} {# Form to navigate to World backup selection #}
{# Keep buttons inline #} {# CSRF token required for POST requests #} {# Hidden input to tell the next route which backup type to list #} {# Submit button styled as action button #}
{# Form to navigate to Config backup selection #}
{# Button to trigger Restore All API call directly via JavaScript #} {# 'this' refers to the button element (for disabling) #} {# 'server_name' comes from Jinja context #} {# --- Commented Out Alternative Approach --- #} {# Option 2: Single form, or pure JS navigation (more complex setup) #} {# This would require JS to handle the navigation based on button clicks #} {# #} {# --- End Alternative --- #}
{# --- End .button-group --- #} {# Navigation Link Back #}
{# --- End .restore-menu-section --- #} {% endblock %} {# --- Optional Body Scripts Block --- #} {% block body_scripts %} {# #} {% endblock %}