mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 07:44:04 +02:00
GeneralForm: replace ignorant button
It makes no sense to add submit buttons without telling the form that there is such, especially in combination with autosubmitting elements. refs #5967
This commit is contained in:
parent
c563479888
commit
1efd1d183e
@ -357,17 +357,7 @@ class GeneralForm extends Form
|
|||||||
$this->addDateFormatSettings($global);
|
$this->addDateFormatSettings($global);
|
||||||
$this->addUserPreferencesDialog($preferences);
|
$this->addUserPreferencesDialog($preferences);
|
||||||
|
|
||||||
$this->addElement(
|
$this->setSubmitLabel('Save Changes');
|
||||||
'button',
|
|
||||||
'btn_submit',
|
|
||||||
array(
|
|
||||||
'type' => 'submit',
|
|
||||||
'escape' => false,
|
|
||||||
'value' => '1',
|
|
||||||
'label' => $this->getView()->icon('save.png', 'Save Changes')
|
|
||||||
. ' Save changes',
|
|
||||||
)
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user