mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-24 22:34:24 +02:00
Wrap form notifications in <p> by default, not <div>
This commit is contained in:
parent
13678bb33e
commit
b5798331db
@ -88,7 +88,15 @@ EOT;
|
|||||||
$this->addElement(
|
$this->addElement(
|
||||||
new Note(
|
new Note(
|
||||||
'suggestion',
|
'suggestion',
|
||||||
array('value' => $html)
|
array(
|
||||||
|
'value' => $html,
|
||||||
|
'decorators' => array(
|
||||||
|
'ViewHelper',
|
||||||
|
array(
|
||||||
|
'HtmlTag', array('tag' => 'div')
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -5,7 +5,6 @@
|
|||||||
namespace Icinga\Web\Form\Element;
|
namespace Icinga\Web\Form\Element;
|
||||||
|
|
||||||
use Zend_Form_Element;
|
use Zend_Form_Element;
|
||||||
use Icinga\Web\Form;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A note
|
* A note
|
||||||
@ -32,7 +31,15 @@ class Note extends Zend_Form_Element
|
|||||||
*/
|
*/
|
||||||
public function init()
|
public function init()
|
||||||
{
|
{
|
||||||
$this->setDecorators(Form::$defaultElementDecorators);
|
if (count($this->getDecorators()) === 0) {
|
||||||
|
$this->setDecorators(array(
|
||||||
|
'ViewHelper',
|
||||||
|
array(
|
||||||
|
'HtmlTag',
|
||||||
|
array('tag' => 'p')
|
||||||
|
)
|
||||||
|
));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user