mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
SyncCheck/RunForm: use custom buttons
This allows to render them together
This commit is contained in:
parent
15d61ca1de
commit
d0f7906f8b
@ -18,9 +18,11 @@ class SyncCheckForm extends QuickForm
|
||||
|
||||
public function setup()
|
||||
{
|
||||
$this->submitLabel = $this->translate(
|
||||
'Check for changes'
|
||||
);
|
||||
$this->submitLabel = false;
|
||||
$this->addElement('submit', 'submit', array(
|
||||
'label' => $this->translate('Check for changes'),
|
||||
'decorators' => array('ViewHelper')
|
||||
));
|
||||
}
|
||||
|
||||
public function onSuccess()
|
||||
@ -56,7 +58,7 @@ class SyncCheckForm extends QuickForm
|
||||
$this->setSuccessMessage(
|
||||
$this->translate('Nothing would change, this rule is still in sync')
|
||||
);
|
||||
parent::onSuccess();
|
||||
parent::onSuccess();
|
||||
} else {
|
||||
$this->addError($this->translate('Checking this sync rule failed'));
|
||||
}
|
||||
|
@ -18,9 +18,11 @@ class SyncRunForm extends QuickForm
|
||||
|
||||
public function setup()
|
||||
{
|
||||
$this->submitLabel = $this->translate(
|
||||
'Trigger this Sync'
|
||||
);
|
||||
$this->submitLabel = false;
|
||||
$this->addElement('submit', 'submit', array(
|
||||
'label' => $this->translate('Trigger this Sync'),
|
||||
'decorators' => array('ViewHelper')
|
||||
));
|
||||
}
|
||||
|
||||
public function onSuccess()
|
||||
|
Loading…
x
Reference in New Issue
Block a user