MDL-55657 theme_noname: Re-use the password template.
authorDamyon Wiese <damyon@moodle.com>
Tue, 6 Sep 2016 02:44:43 +0000 (10:44 +0800)
committerDan Poltawski <dan@moodle.com>
Fri, 23 Sep 2016 09:55:14 +0000 (10:55 +0100)
Part of MDL-55071

theme/noname/templates/core_form/element-passwordunmask.mustache

index 8d6d191..66eb5c7 100644 (file)
@@ -1,17 +1,4 @@
-{{< core_form/element-template }}
-    {{$element}}
-        <input type="password"
-                {{#element.frozen}}readonly{{/element.frozen}}
-                class="form-control {{#error}}form-control-danger{{/error}}"
-                name="{{element.name}}"
-                id="{{element.id}}"
-                value="{{element.value}}"
-                size="{{element.size}}"
-                {{#error}}
-                    autofocus aria-describedby="id_error_{{element.name}}"
-                {{/error}} {{{attributes}}}>
-    {{/element}}
-{{/ core_form/element-template }}
+{{> core_form/element-password }}
 {{#js}}
 require(['core/yui'], function(Y) {
     Y.use('moodle-form-passwordunmask', function() {