mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
UserForm: don't ask for mail and pager on tpl
This commit is contained in:
parent
4388d2659c
commit
5c2f638593
@ -27,15 +27,18 @@ class IcingaUserForm extends DirectorObjectForm
|
||||
));
|
||||
}
|
||||
|
||||
$this->addElement('text', 'email', array(
|
||||
'label' => $this->translate('Email'),
|
||||
'description' => $this->translate('The Email address of the user.')
|
||||
));
|
||||
if (! $this->isTemplate()) {
|
||||
|
||||
$this->addElement('text', 'pager', array(
|
||||
'label' => $this->translate('Pager'),
|
||||
'description' => $this->translate('The pager address of the user.')
|
||||
));
|
||||
$this->addElement('text', 'email', array(
|
||||
'label' => $this->translate('Email'),
|
||||
'description' => $this->translate('The Email address of the user.')
|
||||
));
|
||||
|
||||
$this->addElement('text', 'pager', array(
|
||||
'label' => $this->translate('Pager'),
|
||||
'description' => $this->translate('The pager address of the user.')
|
||||
));
|
||||
}
|
||||
|
||||
$this->addGroupsElement()
|
||||
->addImportsElement()
|
||||
|
Loading…
x
Reference in New Issue
Block a user