SyncCheck/RunForm: use custom buttons

This allows to render them together
This commit is contained in:
Thomas Gelf 2016-06-26 13:50:10 +02:00
parent 15d61ca1de
commit d0f7906f8b
2 changed files with 11 additions and 7 deletions

View File

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

View File

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