IcingaHostForm: template should not say 'Hostname'

fixes #1668
This commit is contained in:
Thomas Gelf 2018-10-05 15:25:55 +02:00
parent 72998e4307
commit 8fb2c26d7f
2 changed files with 10 additions and 2 deletions

View File

@ -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')
));

View File

@ -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(