mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
SyncPropertyForm: coding style cleanup
This commit is contained in:
parent
87958a693f
commit
3192700d3a
@ -10,45 +10,45 @@ class SyncPropertyForm extends DirectorObjectForm
|
|||||||
public function setup()
|
public function setup()
|
||||||
{
|
{
|
||||||
$this->addElement('select', 'rule_id', array(
|
$this->addElement('select', 'rule_id', array(
|
||||||
'label' => $this->translate('Rule Name'),
|
'label' => $this->translate('Rule Name'),
|
||||||
'required' => true,
|
'required' => true,
|
||||||
));
|
));
|
||||||
|
|
||||||
$this->addElement('select', 'source_id', array(
|
$this->addElement('select', 'source_id', array(
|
||||||
'label' => $this->translate('Source Name'),
|
'label' => $this->translate('Source Name'),
|
||||||
'required' => true,
|
'required' => true,
|
||||||
));
|
));
|
||||||
|
|
||||||
$this->addElement('text', 'source_expression', array(
|
$this->addElement('text', 'source_expression', array(
|
||||||
'label' => $this->translate('Source Expression'),
|
'label' => $this->translate('Source Expression'),
|
||||||
'required' => true,
|
'required' => true,
|
||||||
));
|
));
|
||||||
|
|
||||||
$this->addElement('text', 'destination_field', array(
|
$this->addElement('text', 'destination_field', array(
|
||||||
'label' => $this->translate('Destination Field'),
|
'label' => $this->translate('Destination Field'),
|
||||||
'required' => true,
|
'required' => true,
|
||||||
));
|
));
|
||||||
|
|
||||||
$this->addElement('text', 'priority', array(
|
$this->addElement('text', 'priority', array(
|
||||||
'label' => $this->translate('Priority'),
|
'label' => $this->translate('Priority'),
|
||||||
'description' => $this->translate('Priority for the specified source expression'),
|
'description' => $this->translate('Priority for the specified source expression'),
|
||||||
'required' => true,
|
'required' => true,
|
||||||
));
|
));
|
||||||
|
|
||||||
$this->addElement('text', 'filter_expression', array(
|
$this->addElement('text', 'filter_expression', array(
|
||||||
'label' => $this->translate('Filter Expression'),
|
'label' => $this->translate('Filter Expression'),
|
||||||
'description' => $this->translate('This allows to filter for specific parts within the given source expression'),
|
'description' => $this->translate('This allows to filter for specific parts within the given source expression'),
|
||||||
'required' => false,
|
'required' => false,
|
||||||
));
|
));
|
||||||
|
|
||||||
$this->addElement('select', 'merge_policy', array(
|
$this->addElement('select', 'merge_policy', array(
|
||||||
'label' => $this->translate('Merge Policy'),
|
'label' => $this->translate('Merge Policy'),
|
||||||
'description' => $this->translate('Whether you want to merge or override the destination field'),
|
'description' => $this->translate('Whether you want to merge or override the destination field'),
|
||||||
'required' => true,
|
'required' => true,
|
||||||
'multiOptions' => array(
|
'multiOptions' => array(
|
||||||
'null' => '- please choose -',
|
'null' => '- please choose -',
|
||||||
'merge' => 'merge',
|
'merge' => 'merge',
|
||||||
'override' => 'override'
|
'override' => 'override'
|
||||||
)
|
)
|
||||||
));
|
));
|
||||||
|
|
||||||
@ -61,16 +61,6 @@ class SyncPropertyForm extends DirectorObjectForm
|
|||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function onSuccess()
|
|
||||||
{
|
|
||||||
/*
|
|
||||||
$this->getElement('owner')->setValue(
|
|
||||||
self::username()
|
|
||||||
);
|
|
||||||
*/
|
|
||||||
parent::onSuccess();
|
|
||||||
}
|
|
||||||
|
|
||||||
public function setDb($db)
|
public function setDb($db)
|
||||||
{
|
{
|
||||||
parent::setDb($db);
|
parent::setDb($db);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user