Add submit button label to multi comment form

refs #8624
This commit is contained in:
Matthias Jentsch 2015-05-07 16:21:34 +02:00
parent b314c074cc
commit ac599e642a
1 changed files with 3 additions and 16 deletions

View File

@ -46,24 +46,11 @@ class DeleteCommentsCommandForm extends CommandForm
/**
* (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(
'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;
return $this->translatePlural('Remove', 'Remove All', count($this->downtimes));
}
/**