Merge branch 'MDL-62376-master' of git://github.com/bmbrands/moodle
authorDavid Monllao <davidm@moodle.com>
Fri, 11 May 2018 12:47:32 +0000 (14:47 +0200)
committerDavid Monllao <davidm@moodle.com>
Fri, 11 May 2018 12:47:32 +0000 (14:47 +0200)
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
theme/boost/templates/core_form/element-template-inline.mustache

index d09c56c..94d2fd6 100644 (file)
@@ -27,7 +27,7 @@
     <em>{{{.}}}</em>
 {{/text}}
 {{{helpbutton}}}
-<span class="form-control-feedback invalid-feedback" id="id_error_{{element.name}}" {{^error}} style="display: none;"{{/error}}>
+<span class="form-control-feedback invalid-feedback" id="id_error_{{element.name}}" {{#error}} style="display: block;"{{/error}}>
     {{{error}}}
 </span>
 {{^element.frozen}}
index 8c4f3fe..8e1a472 100644 (file)
@@ -43,7 +43,7 @@
                 {{{helpbutton}}}
             </span>
         </div>
-        <div class="form-control-feedback invalid-feedback" id="id_error_{{element.name}}" {{^error}} style="display: none;"{{/error}}>
+        <div class="form-control-feedback invalid-feedback" id="id_error_{{element.name}}" {{#error}} style="display: block;"{{/error}}>
             {{{error}}}
         </div>
     </div>
index 638a4d3..279affb 100644 (file)
@@ -27,7 +27,7 @@
     <em>{{{.}}}</em>
 {{/text}}
 {{{helpbutton}}}
-<span class="form-control-feedback invalid-feedback" id="id_error_{{element.name}}" {{^error}} style="display: none;"{{/error}}>
+<span class="form-control-feedback invalid-feedback" id="id_error_{{element.name}}" {{#error}} style="display: block;"{{/error}}>
     {{{error}}}
 </span>
 {{^element.frozen}}
index a66472c..9277f0b 100644 (file)
@@ -43,7 +43,7 @@
                 {{{helpbutton}}}
             </span>
         </div>
-        <div class="form-control-feedback invalid-feedback" id="id_error_{{element.name}}" {{^error}} style="display: none;"{{/error}}>
+        <div class="form-control-feedback invalid-feedback" id="id_error_{{element.name}}" {{#error}} style="display: block;"{{/error}}>
             {{{error}}}
         </div>
     </div>
index 95e04c3..bac7a26 100644 (file)
@@ -28,7 +28,7 @@
     <em>{{{.}}}</em>
 {{/text}}
 {{{helpbutton}}}
-<span class="form-control-feedback invalid-feedback" id="id_error_{{element.name}}" {{^error}} style="display: none;"{{/error}}>
+<span class="form-control-feedback invalid-feedback" id="id_error_{{element.name}}" {{#error}} style="display: block;"{{/error}}>
     {{{error}}}
 </span>
 {{^element.frozen}}
index e6b5642..01d9cec 100644 (file)
         {{/text}}
     </div>
     <div class="col-md-9 checkbox">
-        <label class="form-check-label">
-        {{^element.hardfrozen}}{{#element.frozen}}{{#element.checked}}
-            <input type="hidden" name="{{element.name}}" value="{{element.value}}">
-        {{/element.checked}}{{/element.frozen}}{{/element.hardfrozen}}
-        <input type="radio" class="form-check-input" {{^element.frozen}}name="{{element.name}}"{{/element.frozen}}
-            id="{{element.id}}" value="{{element.value}}"
-            {{#element.checked}}checked{{/element.checked}}
-            {{#element.frozen}}disabled{{/element.frozen}}
-            {{#error}}
-                autofocus aria-describedby="id_error_{{element.name}}"
-            {{/error}} {{{element.attributes}}} >
-        {{#text}}
-            {{{.}}}
-        {{/text}}
-        {{^text}}
-            {{{label}}}
-        {{/text}}
-        </label>
+        <div class="form-check">
+            <label class="form-check-label">
+            {{^element.hardfrozen}}{{#element.frozen}}{{#element.checked}}
+                <input type="hidden" name="{{element.name}}" value="{{element.value}}">
+            {{/element.checked}}{{/element.frozen}}{{/element.hardfrozen}}
+            <input type="radio" class="form-check-input" {{^element.frozen}}name="{{element.name}}"{{/element.frozen}}
+                id="{{element.id}}" value="{{element.value}}"
+                {{#element.checked}}checked{{/element.checked}}
+                {{#element.frozen}}disabled{{/element.frozen}}
+                {{#error}}
+                    autofocus aria-describedby="id_error_{{element.name}}"
+                {{/error}} {{{element.attributes}}} >
+            {{#text}}
+                {{{.}}}
+            {{/text}}
+            {{^text}}
+                {{{label}}}
+            {{/text}}
+            </label>
+        </div>
         <span class="text-nowrap">
             {{#required}}<abbr class="initialism text-danger" title="{{#str}}required{{/str}}">{{#pix}}req, core, {{#str}}required{{/str}}{{/pix}}</abbr>{{/required}}
             {{#advanced}}<abbr class="initialism text-info" title="{{#str}}advanced{{/str}}">!</abbr>{{/advanced}}
             {{{helpbutton}}}
         </span>
-         <div class="form-control-feedback invalid-feedback" id="id_error_{{element.name}}" {{^error}} style="display: none;"{{/error}}>
+         <div class="form-control-feedback invalid-feedback" id="id_error_{{element.name}}" {{#error}} style="display: block;"{{/error}}>
             {{{error}}}
         </div>
     </div>
index 35ce030..98ec035 100644 (file)
@@ -9,7 +9,7 @@
             <!-- Element goes here -->
         {{/ element }}
     </span>
-    <div class="form-control-feedback invalid-feedback" id="id_error_{{element.name}}" {{^error}} style="display: none;"{{/error}}>
+    <div class="form-control-feedback invalid-feedback" id="id_error_{{element.name}}" {{#error}} style="display: block;"{{/error}}>
         {{{error}}}
     </div>
 </div>