Fix addElements call in CheckNowCommandForm

This commit is contained in:
Johannes Meyer 2014-11-14 10:41:12 +01:00
parent 6ee0c218e9
commit ea56e4f108

View File

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