{# Extends the base layout template #} {% extends "base.html" %} {# --- Page Title Block --- #} {% block title %}{{ super() }} - Select Backup to Restore: {{ server_name }}{% endblock %} {# --- Head Scripts Block --- #} {# Include JavaScript files needed for restore actions #} {% block head_scripts %} {# backup_restore.js contains the triggerRestore function #} {% endblock %} {# --- Main Content Block --- #} {% block content %} {# Main heading for the page #}
Server: {{ server_name }}
Restore Type: {{ restore_type | title }}
{# Capitalize restore type #} {# --- Status Message Area --- #} {# Targeted by JavaScript (showStatusMessage) #} {# Server-side flash messages (handled by base.html) #} {# Section containing the backup selection list #}Select one of the available backups below to restore. Warning: This will overwrite current data.
{# Wrap table for responsiveness #}Backup File | Action | {# Fixed width for action #}
---|---|
{{ backup_path.name }} | {# Center the button in the actions cell #}{# Button triggers the JS restore function #} |