From d3f249fc402b354965dd46ecca53c5f0826ee2ab Mon Sep 17 00:00:00 2001 From: Beverly Nguyen Date: Wed, 5 Nov 2025 13:02:30 -0800 Subject: [PATCH] confirmation modal --- .../organizations/organization/index.html | 63 ++++++++++++++++--- 1 file changed, 54 insertions(+), 9 deletions(-) diff --git a/app/templates/views/organizations/organization/index.html b/app/templates/views/organizations/organization/index.html index b98a088ba..553068ff6 100644 --- a/app/templates/views/organizations/organization/index.html +++ b/app/templates/views/organizations/organization/index.html @@ -103,43 +103,78 @@ {% endif %} {% if edit_service_data %} -
+

Edit Service

-
+
+ value="{{ edit_service_data.name }}" required>
+ value="{{ edit_service_data.primary_contact }}" placeholder="email@example.com">
Service Status
+ {% if edit_service_data.status == 'trial' %}checked{% endif %}>
+ {% if edit_service_data.status == 'live' %}checked{% endif %}>
- + Cancel
+ + {% endif %}
@@ -278,14 +313,24 @@ requestAnimationFrame(function() { var form = document.getElementById('create-service-form') || - document.getElementById('invite-user-form') || - document.getElementById('edit-service-form'); + document.getElementById('invite-user-form') || + document.getElementById('edit-service-form'); if (form) { scrollToElement(form, 50); focusFirstInput(form, 150); } }); + + var confirmEditButton = document.getElementById('edit-service-confirm-btn'); + if (confirmEditButton) { + confirmEditButton.addEventListener('click', function() { + var editForm = document.getElementById('edit-service-form'); + if (editForm) { + editForm.submit(); + } + }); + } })(); {{ super() }}