parent
b1ee12f721
commit
25307fc1a0
|
@ -0,0 +1,30 @@
|
|||
<?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'
|
||||
)
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue