{# app/templates/admin/admin-user-edit.html #} {% extends "admin/base.html" %} {% from 'shared/macros/alerts.html' import loading_state %} {% from 'shared/macros/headers.html' import edit_page_header %} {% from 'shared/macros/modals.html' import confirm_modal_dynamic %} {% block title %}Edit Admin User{% endblock %} {% block alpine_data %}adminUserEditPage(){% endblock %} {% block content %} {% call edit_page_header('Edit Admin User', '/admin/admin-users', subtitle_show='adminUser', back_label='Back to Admin Users') %} @ {% endcall %} {{ loading_state('Loading admin user...', show_condition='loading') }}

Quick Actions

Super Admin Platform Admin Active Inactive

Admin Information

Unsaved changes

Danger Zone

Deleting an admin user is permanent and cannot be undone.

Assign Platform

All available platforms have been assigned to this admin.

{{ confirm_modal_dynamic( 'removePlatformModal', 'Remove Platform', "'Are you sure you want to remove \"' + (platformToRemove?.name || '') + '\" from this admin?'", 'confirmRemovePlatform()', 'showRemovePlatformModal', 'Remove', 'Cancel', 'warning' ) }} {{ confirm_modal_dynamic( 'toggleSuperAdminModal', 'Toggle Super Admin', "'Are you sure you want to ' + (adminUser?.role === 'super_admin' ? 'demote' : 'promote') + ' \"' + (adminUser?.username || '') + '\" ' + (adminUser?.role === 'super_admin' ? 'from' : 'to') + ' super admin?'", 'toggleSuperAdmin()', 'showToggleSuperAdminModal', 'Confirm', 'Cancel', 'warning' ) }} {{ confirm_modal_dynamic( 'toggleStatusModal', 'Toggle User Status', "'Are you sure you want to ' + (adminUser?.is_active ? 'deactivate' : 'activate') + ' \"' + (adminUser?.username || '') + '\"?'", 'toggleStatus()', 'showToggleStatusModal', 'Confirm', 'Cancel', 'warning' ) }} {{ confirm_modal_dynamic( 'deleteAdminUserModal', 'Delete Admin User', "'Are you sure you want to delete admin user \"' + (adminUser?.username || '') + '\"? This action cannot be undone.'", 'confirmDeleteStep()', 'showDeleteModal', 'Delete', 'Cancel', 'danger' ) }} {{ confirm_modal_dynamic( 'deleteAdminUserFinalModal', 'Final Confirmation', "'FINAL CONFIRMATION: Are you absolutely sure you want to permanently delete \"' + (adminUser?.username || '') + '\"?'", 'deleteAdminUser()', 'showDeleteFinalModal', 'Permanently Delete', 'Cancel', 'danger' ) }} {% endblock %} {% block extra_scripts %} {% endblock %}