From 6b72d3ecd698ce612d5870ae93230b8f4e4dc45e Mon Sep 17 00:00:00 2001 From: Marcin Haba Date: Wed, 18 Dec 2024 11:58:21 +0100 Subject: [PATCH] Add validators to install Bacula form --- API/Pages/Panel/APIInstallWizard.page | 35 +++++++++++++++++++++++---- 1 file changed, 30 insertions(+), 5 deletions(-) diff --git a/API/Pages/Panel/APIInstallWizard.page b/API/Pages/Panel/APIInstallWizard.page index 3f550b7..0c0ffbd 100644 --- a/API/Pages/Panel/APIInstallWizard.page +++ b/API/Pages/Panel/APIInstallWizard.page @@ -220,8 +220,19 @@ + CssClass="w3-input w3-border w3-show-inline-block" + />   + + + sender.enabled = document.getElementById('<%=$this->BaculaNotInstalled->ClientID%>').checked; + +
@@ -232,8 +243,19 @@ TextMode="Password" PersistPassword="true" Width="300px" - CssClass="w3-input w3-border" - /> + CssClass="w3-input w3-border w3-show-inline-block" + />   + + + sender.enabled = document.getElementById('<%=$this->BaculaNotInstalled->ClientID%>').checked; + +
@@ -252,6 +274,9 @@ ID="LoginCheck" CssClass="w3-button w3-green w3-tiny" OnCallback="installBaculaLoginTest" + ValidationGroup="InstallBaculGroup" + CausesValidation="true" + Attributes.onclick="return Prado.Validation.validate(Prado.Validation.getForm(), 'InstallBaculaGroup');" ClientSide.OnLoading="oInstallBacula.clear_connection_check(); oInstallBacula.show_host_connection_loader(true);" >   <%[ Test ]%> @@ -267,7 +292,7 @@
- +