icingaweb2/modules/monitoring/application/forms/Navigation/HostActionForm.php

31 lines
833 B
PHP
Raw Normal View History

<?php
/* Icinga Web 2 | (c) 2013-2015 Icinga Development Team | GPLv2+ */
namespace Icinga\Module\Monitoring\Forms\Navigation;
use Icinga\Forms\Navigation\NavigationItemForm;
class HostActionForm extends NavigationItemForm
{
/**
* {@inheritdoc}
*/
public function createElements(array $formData)
{
parent::createElements($formData);
$this->addElement(
'text',
'filter',
array(
'allowEmpty' => true,
'label' => $this->translate('Filter'),
'description' => $this->translate(
'Display this action only for hosts matching this filter. Leave'
. ' blank if you want this action being displayed for all hosts'
)
)
);
}
}