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() }}