parent
72998e4307
commit
8fb2c26d7f
|
@ -43,8 +43,12 @@ class IcingaCommandForm extends DirectorObjectForm
|
|||
'class' => 'autosubmit'
|
||||
));
|
||||
|
||||
$nameLabel = $this->isTemplate()
|
||||
? $this->translate('Name')
|
||||
: $this->translate('Command name');
|
||||
|
||||
$this->addElement('text', 'object_name', array(
|
||||
'label' => $this->translate('Command name'),
|
||||
'label' => $nameLabel,
|
||||
'required' => true,
|
||||
'description' => $this->translate('Identifier for the Icinga command you are going to create')
|
||||
));
|
||||
|
|
|
@ -34,8 +34,12 @@ class IcingaHostForm extends DirectorObjectForm
|
|||
}
|
||||
}
|
||||
|
||||
$nameLabel = $this->isTemplate()
|
||||
? $this->translate('Name')
|
||||
: $this->translate('Hostname');
|
||||
|
||||
$this->addElement('text', 'object_name', array(
|
||||
'label' => $this->translate('Hostname'),
|
||||
'label' => $nameLabel,
|
||||
'required' => true,
|
||||
'spellcheck' => 'false',
|
||||
'description' => $this->translate(
|
||||
|
|
Loading…
Reference in New Issue