mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-30 01:04:12 +02:00
QuickForm: allow for named hints
This is necessary as I want to refer to them in display groups
This commit is contained in:
parent
09bfcd3bff
commit
75f8872962
@ -245,7 +245,13 @@ abstract class QuickForm extends Zend_Form
|
||||
|
||||
public function addHtml($html, $options = array())
|
||||
{
|
||||
if (array_key_exists('name', $options)) {
|
||||
$name = $options['name'];
|
||||
unset($options['name']);
|
||||
} else {
|
||||
$name = '_HINT' . ++$this->hintCount;
|
||||
}
|
||||
|
||||
$this->addElement('simpleNote', $name, $options);
|
||||
$this->getElement($name)
|
||||
->setValue($html)
|
||||
|
Loading…
x
Reference in New Issue
Block a user