diff --git a/application/forms/Config/Authentication/DbBackendForm.php b/application/forms/Config/Authentication/DbBackendForm.php index 656f06226..97fe7d5e8 100644 --- a/application/forms/Config/Authentication/DbBackendForm.php +++ b/application/forms/Config/Authentication/DbBackendForm.php @@ -90,7 +90,17 @@ class DbBackendForm extends BaseBackendForm ) ); - $this->setSubmitLabel('{{SAVE_ICON}} Save Backend'); + $this->addElement( + 'button', + 'btn_submit', + array( + 'type' => 'submit', + 'value' => '1', + 'escape' => false, + 'class' => 'btn btn-cta btn-wide', + 'label' => ' Save Backend' + ) + ); } /** diff --git a/application/forms/Config/Authentication/LdapBackendForm.php b/application/forms/Config/Authentication/LdapBackendForm.php index 32d403491..5f578461c 100644 --- a/application/forms/Config/Authentication/LdapBackendForm.php +++ b/application/forms/Config/Authentication/LdapBackendForm.php @@ -129,7 +129,17 @@ class LdapBackendForm extends BaseBackendForm ) ); - $this->setSubmitLabel('{{SAVE_ICON}} Save Backend'); + $this->addElement( + 'button', + 'btn_submit', + array( + 'type' => 'submit', + 'value' => '1', + 'escape' => false, + 'class' => 'btn btn-cta btn-wide', + 'label' => ' Save Backend' + ) + ); } /** diff --git a/application/forms/Config/Authentication/ReorderForm.php b/application/forms/Config/Authentication/ReorderForm.php index 7c5f2ffb4..6a0ea1f58 100644 --- a/application/forms/Config/Authentication/ReorderForm.php +++ b/application/forms/Config/Authentication/ReorderForm.php @@ -108,12 +108,15 @@ class ReorderForm extends Form ) ); $this->upForm->addElement( - 'submit', + 'button', 'btn_' . $this->getBackendName() . '_reorder_up', array( + 'type' => 'submit', + 'escape' => false, + 'class' => 'btn btn-cta btn-wide', + 'value' => 'btn_' . $this->getBackendName() . '_reorder_up', 'name' => 'btn_' . $this->getBackendName() . '_reorder_up', - 'label' => '{{ICON_UP}} Move up in authentication order', - + 'label' => ' Move up in authentication order', ) ); } @@ -128,11 +131,15 @@ class ReorderForm extends Form ) ); $this->downForm->addElement( - 'submit', + 'button', 'btn_' . $this->getBackendName() . '_reorder_down', array( + 'type' => 'submit', + 'escape' => false, + 'class' => 'btn btn-cta btn-wide', + 'value' => 'btn_' . $this->getBackendName() . '_reorder_down', 'name' => 'btn_' . $this->getBackendName() . '_reorder_down', - 'label' => '{{ICON_UP}} Move down in authentication order', + 'label' => ' Move down in authentication order', ) ); diff --git a/application/forms/Config/ConfirmRemovalForm.php b/application/forms/Config/ConfirmRemovalForm.php index 9ea1794d6..722dbfc47 100644 --- a/application/forms/Config/ConfirmRemovalForm.php +++ b/application/forms/Config/ConfirmRemovalForm.php @@ -77,6 +77,17 @@ class ConfirmRemovalForm extends Form 'required' => true ) ); - $this->setSubmitLabel('{{REMOVE_ICON}} Confirm Removal'); + + $this->addElement( + 'button', + 'btn_submit', + array( + 'type' => 'submit', + 'escape' => false, + 'value' => '1', + 'class' => 'btn btn-cta btn-common', + 'label' => ' Confirm Removal' + ) + ); } } diff --git a/application/forms/Config/GeneralForm.php b/application/forms/Config/GeneralForm.php index e634c9efc..e997a2891 100644 --- a/application/forms/Config/GeneralForm.php +++ b/application/forms/Config/GeneralForm.php @@ -348,7 +348,17 @@ class GeneralForm extends Form $this->addDateFormatSettings($global); $this->addUserPreferencesDialog($preferences); - $this->setSubmitLabel('{{SAVE_ICON}} Save Changes'); + $this->addElement( + 'button', + 'btn_submit', + array( + 'type' => 'submit', + 'escape' => false, + 'value' => '1', + 'class' => 'btn btn-cta btn-common', + 'label' => ' Save Changes' + ) + ); } /** diff --git a/application/forms/Config/LoggingForm.php b/application/forms/Config/LoggingForm.php index b9e298a7f..9c227b2ae 100644 --- a/application/forms/Config/LoggingForm.php +++ b/application/forms/Config/LoggingForm.php @@ -168,7 +168,17 @@ class LoggingForm extends Form $this->enableAutoSubmit(array('logging_debug_enable')); - $this->setSubmitLabel('{{SAVE_ICON}} Save Changes'); + $this->addElement( + 'button', + 'btn_submit', + array( + 'type' => 'submit', + 'escape' => false, + 'value' => '1', + 'class' => 'btn btn-cta btn-common', + 'label' => ' Save Changes' + ) + ); } /** diff --git a/application/views/scripts/config/authentication.phtml b/application/views/scripts/config/authentication.phtml index 9dd267da5..4bb8d947d 100644 --- a/application/views/scripts/config/authentication.phtml +++ b/application/views/scripts/config/authentication.phtml @@ -2,14 +2,13 @@ use Icinga\Web\Url; $createLdapBackend = $this->href('/config/createAuthenticationBackend', array('type' => 'ldap')); $createDbBackend = $this->href('/config/createAuthenticationBackend', array('type' => 'db')); - ?> = $this->tabs->render($this); ?> errorMessage): ?>