Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
{{!
2
    This file is part of Moodle - http://moodle.org/
3
 
4
    Moodle is free software: you can redistribute it and/or modify
5
    it under the terms of the GNU General Public License as published by
6
    the Free Software Foundation, either version 3 of the License, or
7
    (at your option) any later version.
8
 
9
    Moodle is distributed in the hope that it will be useful,
10
    but WITHOUT ANY WARRANTY; without even the implied warranty of
11
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
    GNU General Public License for more details.
13
 
14
    You should have received a copy of the GNU General Public License
15
    along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
16
}}
17
{{!
18
    @template core_form/element-password-inline
19
 
20
    Password inline form element template.
21
 
22
    Example context (json):
23
    {
24
        "element": {
25
            "name": "test",
26
            "id": "test0",
27
            "size": null,
28
            "error": null,
29
            "value": "Sample text",
30
            "frozen": false,
31
            "iderror": "test0_error",
32
            "attributes": ""
33
        }
34
    }
35
}}
36
{{< core_form/element-template-inline }}
37
    {{$element}}
38
        {{^element.frozen}}
39
        <input type="password"
40
                class="form-control {{#error}}is-invalid{{/error}}"
41
                name="{{element.name}}"
42
                id="{{element.id}}"
43
                value="{{element.value}}"
44
                {{#element.size}}size="{{element.size}}"{{/element.size}}
45
                {{#error}}
46
                    autofocus aria-describedby="{{element.iderror}}"
47
                {{/error}}
48
                {{#required}}
49
                   aria-required="true"
50
                {{/required}}
51
                {{{element.attributes}}}>
52
        {{/element.frozen}}
53
    {{/element}}
54
{{/ core_form/element-template-inline }}