mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 16:24:04 +02:00
parent
b314c074cc
commit
ac599e642a
@ -46,24 +46,11 @@ class DeleteCommentsCommandForm extends CommandForm
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* (non-PHPDoc)
|
* (non-PHPDoc)
|
||||||
* @see \Icinga\Web\Form::addSubmitButton() For the method documentation.
|
* @see \Icinga\Web\Form::getSubmitLabel() For the method documentation.
|
||||||
*/
|
*/
|
||||||
public function addSubmitButton()
|
public function getSubmitLabel()
|
||||||
{
|
{
|
||||||
$this->addElement(
|
return $this->translatePlural('Remove', 'Remove All', count($this->downtimes));
|
||||||
'button',
|
|
||||||
'btn_submit',
|
|
||||||
array(
|
|
||||||
'ignore' => true,
|
|
||||||
'escape' => false,
|
|
||||||
'type' => 'submit',
|
|
||||||
'class' => 'link-like',
|
|
||||||
'label' => $this->getView()->icon('trash'),
|
|
||||||
'title' => $this->translate('Delete this comment'),
|
|
||||||
'decorators' => array('ViewHelper')
|
|
||||||
)
|
|
||||||
);
|
|
||||||
return $this;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user