From 51672e33bdef44664287b24f2c211e75198e82cd Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Fri, 31 Jul 2015 14:48:17 +0200 Subject: [PATCH] QuickForm: addHtml VS addHtmlNote (note is styled) --- library/Director/Web/Form/QuickForm.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/library/Director/Web/Form/QuickForm.php b/library/Director/Web/Form/QuickForm.php index 0deb86d6..b2792da8 100644 --- a/library/Director/Web/Form/QuickForm.php +++ b/library/Director/Web/Form/QuickForm.php @@ -177,11 +177,16 @@ abstract class QuickForm extends Zend_Form } public function addHtmlHint($html, $options = array()) + { + return $this->addHtml('
' . $html . '
', $options); + } + + public function addHtml($html, $options = array()) { $name = '_HINT' . ++$this->hintCount; $this->addElement('note', $name, $options); $this->getElement($name) - ->setValue('
' . $html . '
') + ->setValue($html) ->setIgnore(true) ->removeDecorator('Label');