Fix addElements call in CheckNowCommandForm

This commit is contained in:
Johannes Meyer 2014-11-14 10:41:12 +01:00
parent 6ee0c218e9
commit ea56e4f108
1 changed files with 12 additions and 9 deletions

View File

@ -32,18 +32,21 @@ class CheckNowCommandForm extends ObjectsCommandForm
$iconUrl = $this->getView()->href('img/icons/refresh_petrol.png');
$this->addElements(array(
'button',
'btn_submit',
array(
'ignore' => true,
'type' => 'submit',
'value' => mt('monitoring', 'Check now'),
'label' => '<img src="'.$iconUrl.'"> ' . mt('monitoring', 'Check now'),
'decorators' => array('ViewHelper'),
'escape' => false,
'class' => 'link-like'
'button',
'btn_submit',
array(
'ignore' => true,
'type' => 'submit',
'value' => mt('monitoring', 'Check now'),
'label' => '<img src="' . $iconUrl . '"> ' . mt('monitoring', 'Check now'),
'decorators' => array('ViewHelper'),
'escape' => false,
'class' => 'link-like'
)
)
));
return $this;
}