MDL-56627 theme_boost: Move help buttons outside labels
authorDamyon Wiese <damyon@moodle.com>
Fri, 28 Oct 2016 03:03:50 +0000 (11:03 +0800)
committerDamyon Wiese <damyon@moodle.com>
Fri, 28 Oct 2016 03:04:28 +0000 (11:04 +0800)
For radios and checkboxes where clicking on the label would toggle the state.

theme/boost/templates/core_form/element-advcheckbox-inline.mustache
theme/boost/templates/core_form/element-advcheckbox.mustache
theme/boost/templates/core_form/element-checkbox-inline.mustache
theme/boost/templates/core_form/element-checkbox.mustache
theme/boost/templates/core_form/element-radio-inline.mustache
theme/boost/templates/core_form/element-radio.mustache

index 476a567..3b11eb2 100644 (file)
@@ -21,8 +21,8 @@
         disabled
     {{/element.frozen}}
     {{{element.attributes}}} >
-    {{{label}}} {{{helpbutton}}}
-</label>
+    {{{label}}}
+</label> {{{helpbutton}}}
 <span class="form-control-feedback" id="id_error_{{element.name}}" {{^error}} style="display: none;"{{/error}}>
     {{{error}}}
 </span>
index 91de688..4098526 100644 (file)
@@ -22,8 +22,8 @@
                 disabled
             {{/element.frozen}}
             {{{element.attributes}}} >
-            {{{label}}} {{{helpbutton}}}
-        </label>
+            {{{label}}}
+        </label> {{{helpbutton}}}
         <div class="form-control-feedback" id="id_error_{{element.name}}" {{^error}} style="display: none;"{{/error}}>
             {{{error}}}
         </div>
index 2f7bd86..8249a9b 100644 (file)
@@ -24,8 +24,8 @@
         disabled
     {{/element.frozen}}
     {{{element.attributes}}} >
-    {{{label}}} {{{helpbutton}}}
-</label>
+    {{{label}}}
+</label> {{{helpbutton}}}
 <span class="form-control-feedback" id="id_error_{{element.name}}" {{^error}} style="display: none;"{{/error}}>
     {{{error}}}
 </span>
index 32275e8..e0d0850 100644 (file)
@@ -25,8 +25,8 @@
                 disabled
             {{/element.frozen}}
             {{{element.attributes}}} >
-            {{{label}}} {{{helpbutton}}}
-        </label>
+            {{{label}}}
+        </label> {{{helpbutton}}}
         <div class="form-control-feedback" id="id_error_{{element.name}}" {{^error}} style="display: none;"{{/error}}>
             {{{error}}}
         </div>
index fd8ab56..a05945e 100644 (file)
@@ -21,8 +21,8 @@
     {{/error}}
     {{{element.attributes}}} >
 {{/element.frozen}}
-    {{{label}}} {{{helpbutton}}}
-</label>
+    {{{label}}}
+</label> {{{helpbutton}}}
 <span class="form-control-feedback" id="id_error_{{element.name}}" {{^error}} style="display: none;"{{/error}}>
     {{{error}}}
 </span>
index a052aaa..c16be99 100644 (file)
@@ -22,8 +22,8 @@
                 autofocus aria-describedby="id_error_{{element.name}}"
             {{/error}} {{{element.attributes}}} >
         {{/element.frozen}}
-            {{{label}}} {{{helpbutton}}}
-        </label>
+            {{{label}}}
+        </label> {{{helpbutton}}}
         <div class="form-control-feedback" id="id_error_{{element.name}}" {{^error}} style="display: none;"{{/error}}>
             {{{error}}}
         </div>