Skip to content

Commit

Permalink
Add submit button label to multi comment form
Browse files Browse the repository at this point in the history
refs #8624
  • Loading branch information
majentsch committed May 7, 2015
1 parent b314c07 commit ac599e6
Showing 1 changed file with 3 additions and 16 deletions.
Expand Up @@ -46,24 +46,11 @@ public function createElements(array $formData = array())

/**
* (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));
}

/**
Expand Down

0 comments on commit ac599e6

Please sign in to comment.