Merge branch 'MDL-56440-master' of git://github.com/danpoltawski/moodle
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Mon, 17 Oct 2016 18:55:23 +0000 (20:55 +0200)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Mon, 17 Oct 2016 18:55:23 +0000 (20:55 +0200)
theme/boost/templates/core_form/element-button-inline.mustache
theme/boost/templates/core_form/element-radio-inline.mustache
theme/boost/templates/core_form/element-radio.mustache

index e2f1518..6deac3a 100644 (file)
@@ -12,6 +12,6 @@
                 >
                 {{{element.value}}}
             </button>
-        {{^element.frozen}}
+        {{/element.frozen}}
     {{/element}}
 {{/ core_form/element-template-inline }}
index f1feba5..fd8ab56 100644 (file)
@@ -1,8 +1,21 @@
+{{!
+@template theme_boost/core_form/element-radio-online
+
+   Example context (json):
+   {
+    "element": {
+        "id": "test-radio",
+        "name": "Test radio button",
+        "size": "10"
+      }
+   }
+
+}}
 <label class="form-check-inline {{#error}}has-danger{{/error}}">
 {{^element.frozen}}
 <input type="radio" name="{{element.name}}"
     id="{{element.id}}" value="{{element.value}}" size="{{element.size}}"
-    {{element.checked}}checked{{/element.checked}}
+    {{#element.checked}}checked{{/element.checked}}
     {{#error}}
         autofocus aria-describedby="id_error_{{element.name}}"
     {{/error}}
index 03cf35d..a052aaa 100644 (file)
@@ -1,10 +1,23 @@
+{{!
+    @template theme_boost/core_form/element-radio
+
+    Example context (json):
+    {
+        "element": {
+            "id": "test-radio",
+            "name": "Test radio button",
+            "size": "10"
+        }
+    }
+
+}}
 <div class="form-group row {{#error}}has-danger{{/error}}">
     <div class="col-md-9 push-md-3 checkbox">
         <label>
         {{^element.frozen}}
         <input type="radio" name="{{element.name}}"
             id="{{element.id}}" value="{{element.value}}" size="{{element.size}}"
-            {{element.checked}}checked{{/element.checked}}
+            {{#element.checked}}checked{{/element.checked}}
             {{#error}}
                 autofocus aria-describedby="id_error_{{element.name}}"
             {{/error}} {{{element.attributes}}} >