mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-09-26 11:19:16 +02:00
QuickForm: addHtml VS addHtmlNote (note is styled)
This commit is contained in:
parent
24f7e36e92
commit
51672e33bd
@ -177,11 +177,16 @@ abstract class QuickForm extends Zend_Form
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function addHtmlHint($html, $options = array())
|
public function addHtmlHint($html, $options = array())
|
||||||
|
{
|
||||||
|
return $this->addHtml('<div class="hint">' . $html . '</div>', $options);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function addHtml($html, $options = array())
|
||||||
{
|
{
|
||||||
$name = '_HINT' . ++$this->hintCount;
|
$name = '_HINT' . ++$this->hintCount;
|
||||||
$this->addElement('note', $name, $options);
|
$this->addElement('note', $name, $options);
|
||||||
$this->getElement($name)
|
$this->getElement($name)
|
||||||
->setValue('<div class="hint">' . $html . '</div>')
|
->setValue($html)
|
||||||
->setIgnore(true)
|
->setIgnore(true)
|
||||||
->removeDecorator('Label');
|
->removeDecorator('Label');
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user