Skip to content

Commit

Permalink
Forms: Wrap the label and the help icon in a div
Browse files Browse the repository at this point in the history
refs #5543
  • Loading branch information
lippserd committed Sep 19, 2015
1 parent a92c0de commit 46ab8d8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions library/Icinga/Web/Form.php
Expand Up @@ -212,11 +212,12 @@ class Form extends Zend_Form
* @var array
*/
public static $defaultElementDecorators = array(
array('Label', array('tag'=>'span', 'separator' => '', 'class' => 'control-label')),
array('Help', array('placement' => 'APPEND')),
array(array('labelWrap' => 'HtmlTag'), array('tag' => 'div', 'class' => 'control-label-group')),
array('ViewHelper', array('separator' => '')),
array('Errors', array('separator' => '')),
array('Help', array('placement' => 'PREPEND')),
array('Label', array('separator' => '')),
array('HtmlTag', array('tag' => 'div', 'class' => 'element'))
array('HtmlTag', array('tag' => 'div', 'class' => 'control-group'))
);

/**
Expand Down

0 comments on commit 46ab8d8

Please sign in to comment.