Skip to content

Commit

Permalink
monitoring/commands: Add icon to the check now command form
Browse files Browse the repository at this point in the history
refs #6593
  • Loading branch information
lippserd committed Sep 12, 2014
1 parent 1d54c7f commit 16bc0e5
Showing 1 changed file with 37 additions and 3 deletions.
Expand Up @@ -6,7 +6,6 @@

use Icinga\Module\Monitoring\Command\Object\ScheduleHostCheckCommand;
use Icinga\Module\Monitoring\Command\Object\ScheduleServiceCheckCommand;
use Icinga\Module\Monitoring\Form\Command\Object\ObjectsCommandForm;
use Icinga\Web\Notification;
use Icinga\Web\Request;

Expand All @@ -15,17 +14,52 @@
*/
class CheckNowCommandForm extends ObjectsCommandForm
{

/**
* (non-PHPDoc)
* @see \Zend_Form::init() For the method documentation.
*/
public function init()
{
$this->setSubmitLabel(mt('monitoring', 'Check Now'));
$this->setAttrib('class', 'inline link-like');
}

/**
* (non-PHPDoc)
* @see \Icinga\Web\Form::addSubmitButton() For the method documentation.
*/
public function addSubmitButton()
{
$this->addElements(array(
array(
'note',
'icon',
array(
'decorators' => array(
array(
'HtmlTag',
array(
'tag' => 'img',
'src' => $this->getView()->href('img/icons/refresh_petrol.png'),
)
)
)
)
),
array(
'submit',
'btn_submit',
array(
'ignore' => true,
'label' => mt('monitoring', 'Check Now'),
'decorators' => array(
'ViewHelper'
)
)
)
));
return $this;
}

/**
* (non-PHPDoc)
* @see \Icinga\Web\Form::onSuccess() For the method documentation.
Expand Down

0 comments on commit 16bc0e5

Please sign in to comment.