From a627571b87e0ac1529edd39920995eb83b7ccc2a Mon Sep 17 00:00:00 2001
From: Johannes Meyer <johannes.meyer@netways.de>
Date: Mon, 11 Aug 2014 10:46:45 +0200
Subject: [PATCH] Drop obsolete button elements

refs #5525
---
 .../forms/Config/Authentication/DbBackendForm.php   | 13 -------------
 .../forms/Config/Authentication/LdapBackendForm.php | 13 -------------
 2 files changed, 26 deletions(-)

diff --git a/application/forms/Config/Authentication/DbBackendForm.php b/application/forms/Config/Authentication/DbBackendForm.php
index 38b87c179..bb1e68924 100644
--- a/application/forms/Config/Authentication/DbBackendForm.php
+++ b/application/forms/Config/Authentication/DbBackendForm.php
@@ -55,7 +55,6 @@ class DbBackendForm extends BaseBackendForm
                 'name',
                 array(
                     'required'      => true,
-                    'allowEmpty'    => false,
                     'label'         => t('Backend Name'),
                     'helptext'      => t('The name of this authentication provider'),
                 )
@@ -65,23 +64,11 @@ class DbBackendForm extends BaseBackendForm
                 'resource',
                 array(
                     'required'      => true,
-                    'allowEmpty'    => false,
                     'label'         => t('Database Connection'),
                     'helptext'      => t('The database connection to use for authenticating with this provider'),
                     'multiOptions'  => $this->resources
                 )
             ),
-            $this->createElement(
-                'button',
-                'btn_submit',
-                array(
-                    'type'      => 'submit',
-                    'value'     => '1',
-                    'escape'    => false,
-                    'class'     => 'btn btn-cta btn-wide',
-                    'label'     => '<i class="icinga-icon-save"></i> Save Backend'
-                )
-            ),
             $this->createElement(
                 'hidden',
                 'backend',
diff --git a/application/forms/Config/Authentication/LdapBackendForm.php b/application/forms/Config/Authentication/LdapBackendForm.php
index 8e1872e86..8d275b00e 100644
--- a/application/forms/Config/Authentication/LdapBackendForm.php
+++ b/application/forms/Config/Authentication/LdapBackendForm.php
@@ -55,7 +55,6 @@ class LdapBackendForm extends BaseBackendForm
                 'name',
                 array(
                     'required'      => true,
-                    'allowEmpty'    => false,
                     'label'         => t('Backend Name'),
                     'helptext'      => t('The name of this authentication backend')
                 )
@@ -65,7 +64,6 @@ class LdapBackendForm extends BaseBackendForm
                 'resource',
                 array(
                     'required'      => true,
-                    'allowEmpty'    => false,
                     'label'         => t('LDAP Resource'),
                     'helptext'      => t('The resource to use for authenticating with this provider'),
                     'multiOptions'  => $this->resources
@@ -91,17 +89,6 @@ class LdapBackendForm extends BaseBackendForm
                     'value'     => 'uid'
                 )
             ),
-            $this->createElement(
-                'button',
-                'btn_submit',
-                array(
-                    'type'      => 'submit',
-                    'value'     => '1',
-                    'escape'    => false,
-                    'class'     => 'btn btn-cta btn-wide',
-                    'label'     => '<i class="icinga-icon-save"></i> Save Backend'
-                )
-            ),
             $this->createElement(
                 'hidden',
                 'backend',