-
Improvement
-
Resolution: Duplicate
-
Minor
-
None
-
1.8, 1.9
-
None
-
MOODLE_18_STABLE, MOODLE_19_STABLE
If we add the group name to the rendered tags of the groups elements (<div> & <fieldset>), developers can have more control over the display through CSS.
My suggestion is to change line 1399 in formslib.php as follows:
'fieldset'=>"\n\t\t".'<div id="
{name}div" class="fitem {advanced}<!-- BEGIN required -fs" class="felement
{type} <!-- BEGIN error -> error<!- END error ->"><!- BEGIN error --><span class="error">
</span><br /><!-- END error -->
{element}</fieldset></div>',
This adds the "id" attribute to the containing div and fieldset tags, using the name of the group. Alternatively, the name could be used in the class list if the "id" in not desired.
- duplicates
-
MDL-31445 moodleforms unique id on field div wrappers
-
- Closed
-