From fe94ec8581f812051c35f18d385acb722ce4f1b9 Mon Sep 17 00:00:00 2001 From: Samir Boulahtit Date: Sat, 24 Jan 2026 21:39:11 +0100 Subject: [PATCH] fix: show platform name in removal confirmation modal Changed from static confirm_modal macro to custom modal with Alpine.js binding to display the platform name dynamically in the confirmation message. Co-Authored-By: Claude Opus 4.5 --- app/templates/admin/admin-user-edit.html | 76 ++++++++++++++++++++---- 1 file changed, 65 insertions(+), 11 deletions(-) diff --git a/app/templates/admin/admin-user-edit.html b/app/templates/admin/admin-user-edit.html index b25abc21..706e76e4 100644 --- a/app/templates/admin/admin-user-edit.html +++ b/app/templates/admin/admin-user-edit.html @@ -2,7 +2,6 @@ {% 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 %} {% block title %}Edit Admin User{% endblock %} @@ -255,16 +254,71 @@ -{{ confirm_modal( - 'removePlatformModal', - 'Remove Platform', - 'Are you sure you want to remove this platform from this admin?', - 'confirmRemovePlatform()', - 'showRemovePlatformModal', - 'Remove', - 'Cancel', - 'warning' -) }} + {% endblock %} {% block extra_scripts %}