mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 07:44:04 +02:00
Update required
attribute of all forms
Some were missing it, some were adding it unnecessarily. Since it's now displayed what's required this needed to be streamlined.
This commit is contained in:
parent
568619b92e
commit
e01852f34b
@ -33,7 +33,6 @@ class ApplicationConfigForm extends Form
|
|||||||
'checkbox',
|
'checkbox',
|
||||||
'global_show_stacktraces',
|
'global_show_stacktraces',
|
||||||
array(
|
array(
|
||||||
'required' => true,
|
|
||||||
'value' => true,
|
'value' => true,
|
||||||
'label' => $this->translate('Show Stacktraces'),
|
'label' => $this->translate('Show Stacktraces'),
|
||||||
'description' => $this->translate(
|
'description' => $this->translate(
|
||||||
@ -47,7 +46,6 @@ class ApplicationConfigForm extends Form
|
|||||||
'checkbox',
|
'checkbox',
|
||||||
'global_show_application_state_messages',
|
'global_show_application_state_messages',
|
||||||
array(
|
array(
|
||||||
'required' => true,
|
|
||||||
'value' => true,
|
'value' => true,
|
||||||
'label' => $this->translate('Show Application State Messages'),
|
'label' => $this->translate('Show Application State Messages'),
|
||||||
'description' => $this->translate(
|
'description' => $this->translate(
|
||||||
|
@ -243,6 +243,7 @@ class ResourceConfigForm extends ConfigForm
|
|||||||
'force_creation',
|
'force_creation',
|
||||||
array(
|
array(
|
||||||
'order' => 0,
|
'order' => 0,
|
||||||
|
'required' => true,
|
||||||
'ignore' => true,
|
'ignore' => true,
|
||||||
'label' => $this->translate('Force Changes'),
|
'label' => $this->translate('Force Changes'),
|
||||||
'description' => $this->translate('Check this box to enforce changes without connectivity validation')
|
'description' => $this->translate('Check this box to enforce changes without connectivity validation')
|
||||||
|
@ -19,7 +19,6 @@ class UserForm extends RepositoryForm
|
|||||||
'checkbox',
|
'checkbox',
|
||||||
'is_active',
|
'is_active',
|
||||||
array(
|
array(
|
||||||
'required' => true,
|
|
||||||
'value' => true,
|
'value' => true,
|
||||||
'label' => $this->translate('Active'),
|
'label' => $this->translate('Active'),
|
||||||
'description' => $this->translate('Prevents the user from logging in if unchecked')
|
'description' => $this->translate('Prevents the user from logging in if unchecked')
|
||||||
|
@ -255,7 +255,6 @@ class PreferenceForm extends Form
|
|||||||
'checkbox',
|
'checkbox',
|
||||||
'show_stacktraces',
|
'show_stacktraces',
|
||||||
array(
|
array(
|
||||||
'required' => true,
|
|
||||||
'value' => $this->getDefaultShowStacktraces(),
|
'value' => $this->getDefaultShowStacktraces(),
|
||||||
'label' => $this->translate('Show Stacktraces'),
|
'label' => $this->translate('Show Stacktraces'),
|
||||||
'description' => $this->translate('Set whether to show an exception\'s stacktrace.')
|
'description' => $this->translate('Set whether to show an exception\'s stacktrace.')
|
||||||
@ -267,7 +266,6 @@ class PreferenceForm extends Form
|
|||||||
'checkbox',
|
'checkbox',
|
||||||
'show_benchmark',
|
'show_benchmark',
|
||||||
array(
|
array(
|
||||||
'required' => true,
|
|
||||||
'label' => $this->translate('Use benchmark')
|
'label' => $this->translate('Use benchmark')
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
@ -175,7 +175,6 @@ class BackendConfigForm extends ConfigForm
|
|||||||
'checkbox',
|
'checkbox',
|
||||||
'disabled',
|
'disabled',
|
||||||
array(
|
array(
|
||||||
'required' => true,
|
|
||||||
'label' => $this->translate('Disable This Backend')
|
'label' => $this->translate('Disable This Backend')
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
@ -375,6 +375,7 @@ class TransportConfigForm extends ConfigForm
|
|||||||
'force_creation',
|
'force_creation',
|
||||||
array(
|
array(
|
||||||
'order' => 0,
|
'order' => 0,
|
||||||
|
'required' => true,
|
||||||
'ignore' => true,
|
'ignore' => true,
|
||||||
'label' => $this->translate('Force Changes'),
|
'label' => $this->translate('Force Changes'),
|
||||||
'description' => $this->translate(
|
'description' => $this->translate(
|
||||||
|
@ -33,7 +33,6 @@ class ModulePage extends Form
|
|||||||
'checkbox',
|
'checkbox',
|
||||||
$module->getName(),
|
$module->getName(),
|
||||||
array(
|
array(
|
||||||
'required' => true,
|
|
||||||
'description' => $module->getDescription(),
|
'description' => $module->getDescription(),
|
||||||
'label' => ucfirst($module->getName()),
|
'label' => ucfirst($module->getName()),
|
||||||
'value' => $module->getName() === 'monitoring' ? 1 : 0,
|
'value' => $module->getName() === 'monitoring' ? 1 : 0,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user