Ensure that all forms have a name

refs #5525
This commit is contained in:
Johannes Meyer 2014-08-22 12:15:02 +02:00
parent 2b879b344f
commit 75a0c17933
9 changed files with 48 additions and 1 deletions

View File

@ -11,6 +11,14 @@ use Zend_Validate_Callback;
*/ */
class AutologinBackendForm extends BaseBackendForm class AutologinBackendForm extends BaseBackendForm
{ {
/**
* Initialize this form
*/
public function init()
{
$this->setName('form_config_authentication_autologin');
}
public function isValidAuthenticationBackend() public function isValidAuthenticationBackend()
{ {
return true; return true;

View File

@ -30,6 +30,8 @@ class DbBackendForm extends BaseBackendForm
*/ */
public function init() public function init()
{ {
$this->setName('form_config_authentication_db');
$dbResources = array_keys( $dbResources = array_keys(
ResourceFactory::getResourceConfigs('db')->toArray() ResourceFactory::getResourceConfigs('db')->toArray()
); );

View File

@ -30,6 +30,8 @@ class LdapBackendForm extends BaseBackendForm
*/ */
public function init() public function init()
{ {
$this->setName('form_config_authentication_ldap');
$ldapResources = array_keys( $ldapResources = array_keys(
ResourceFactory::getResourceConfigs('ldap')->toArray() ResourceFactory::getResourceConfigs('ldap')->toArray()
); );

View File

@ -13,6 +13,14 @@ use Icinga\Web\Form;
*/ */
class AddUrlForm extends Form class AddUrlForm extends Form
{ {
/**
* Initialize this form
*/
public function init()
{
$this->setName('form_dashboard_addurl');
}
/** /**
* @see Form::createElements() * @see Form::createElements()
*/ */

View File

@ -19,7 +19,7 @@ class GeneralForm extends Form
*/ */
public function init() public function init()
{ {
$this->setName('form_preference_set'); $this->setName('form_config_preferences');
} }
/** /**

View File

@ -251,6 +251,9 @@ class Monitoring_ConfigController extends ModuleActionController
return true; return true;
} }
/**
* Display a form to adjust security relevant settings
*/
public function securityAction() public function securityAction()
{ {
$this->view->tabs = $this->Module()->getConfigTabs()->activate('security'); $this->view->tabs = $this->Module()->getConfigTabs()->activate('security');

View File

@ -12,6 +12,14 @@ use Icinga\Data\ResourceFactory;
*/ */
class BackendForm extends Form class BackendForm extends Form
{ {
/**
* Initialize this form
*/
public function init()
{
$this->setName('form_config_monitoring_backends');
}
/** /**
* @see Form::createElements() * @see Form::createElements()
*/ */

View File

@ -14,6 +14,14 @@ use Icinga\Web\Form\Decorator\ElementWrapper;
*/ */
class InstanceForm extends Form class InstanceForm extends Form
{ {
/**
* Initialize this form
*/
public function init()
{
$this->setName('form_config_monitoring_instances');
}
/** /**
* @see Form::createElements() * @see Form::createElements()
*/ */

View File

@ -17,6 +17,14 @@ class SecurityForm extends Form
*/ */
protected $config; protected $config;
/**
* Initialize this form
*/
public function init()
{
$this->setName('form_config_monitoring_security');
}
/** /**
* @see Form::createElements() * @see Form::createElements()
*/ */