mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-31 01:34:09 +02:00
Add some redundancy to get more implicitness
Although this commit does not seem reasonable at first the "big" picture proves its necessity! refs #7163
This commit is contained in:
parent
4f688fa544
commit
380ffe45b9
@ -29,6 +29,15 @@ class DbResourceForm extends Form
|
|||||||
*/
|
*/
|
||||||
public function createElements(array $formData)
|
public function createElements(array $formData)
|
||||||
{
|
{
|
||||||
|
$this->addElement(
|
||||||
|
'text',
|
||||||
|
'name',
|
||||||
|
array(
|
||||||
|
'required' => true,
|
||||||
|
'label' => t('Resource Name'),
|
||||||
|
'description' => t('The unique name of this resource')
|
||||||
|
)
|
||||||
|
);
|
||||||
$this->addElement(
|
$this->addElement(
|
||||||
'select',
|
'select',
|
||||||
'db',
|
'db',
|
||||||
|
@ -25,6 +25,15 @@ class FileResourceForm extends Form
|
|||||||
*/
|
*/
|
||||||
public function createElements(array $formData)
|
public function createElements(array $formData)
|
||||||
{
|
{
|
||||||
|
$this->addElement(
|
||||||
|
'text',
|
||||||
|
'name',
|
||||||
|
array(
|
||||||
|
'required' => true,
|
||||||
|
'label' => t('Resource Name'),
|
||||||
|
'description' => t('The unique name of this resource')
|
||||||
|
)
|
||||||
|
);
|
||||||
$this->addElement(
|
$this->addElement(
|
||||||
'text',
|
'text',
|
||||||
'filename',
|
'filename',
|
||||||
|
@ -29,6 +29,15 @@ class LdapResourceForm extends Form
|
|||||||
*/
|
*/
|
||||||
public function createElements(array $formData)
|
public function createElements(array $formData)
|
||||||
{
|
{
|
||||||
|
$this->addElement(
|
||||||
|
'text',
|
||||||
|
'name',
|
||||||
|
array(
|
||||||
|
'required' => true,
|
||||||
|
'label' => t('Resource Name'),
|
||||||
|
'description' => t('The unique name of this resource')
|
||||||
|
)
|
||||||
|
);
|
||||||
$this->addElement(
|
$this->addElement(
|
||||||
'text',
|
'text',
|
||||||
'hostname',
|
'hostname',
|
||||||
|
@ -29,6 +29,15 @@ class LivestatusResourceForm extends Form
|
|||||||
*/
|
*/
|
||||||
public function createElements(array $formData)
|
public function createElements(array $formData)
|
||||||
{
|
{
|
||||||
|
$this->addElement(
|
||||||
|
'text',
|
||||||
|
'name',
|
||||||
|
array(
|
||||||
|
'required' => true,
|
||||||
|
'label' => t('Resource Name'),
|
||||||
|
'description' => t('The unique name of this resource')
|
||||||
|
)
|
||||||
|
);
|
||||||
$this->addElement(
|
$this->addElement(
|
||||||
'text',
|
'text',
|
||||||
'socket',
|
'socket',
|
||||||
|
@ -26,6 +26,15 @@ class StatusdatResourceForm extends Form
|
|||||||
*/
|
*/
|
||||||
public function createElements(array $formData)
|
public function createElements(array $formData)
|
||||||
{
|
{
|
||||||
|
$this->addElement(
|
||||||
|
'text',
|
||||||
|
'name',
|
||||||
|
array(
|
||||||
|
'required' => true,
|
||||||
|
'label' => t('Resource Name'),
|
||||||
|
'description' => t('The unique name of this resource')
|
||||||
|
)
|
||||||
|
);
|
||||||
$this->addElement(
|
$this->addElement(
|
||||||
'text',
|
'text',
|
||||||
'status_file',
|
'status_file',
|
||||||
|
@ -224,15 +224,6 @@ class ResourceConfigForm extends ConfigForm
|
|||||||
$resourceTypes['db'] = t('SQL Database');
|
$resourceTypes['db'] = t('SQL Database');
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->addElement(
|
|
||||||
'text',
|
|
||||||
'name',
|
|
||||||
array(
|
|
||||||
'required' => true,
|
|
||||||
'label' => t('Resource Name'),
|
|
||||||
'description' => t('The unique name of this resource')
|
|
||||||
)
|
|
||||||
);
|
|
||||||
$this->addElement(
|
$this->addElement(
|
||||||
'select',
|
'select',
|
||||||
'type',
|
'type',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user