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 gradereport_singleview/text_attribute
19
 
20
    Text attribute.
21
 
22
    Example context (json):
23
    {
24
        "name": "Awesome-report",
25
        "label": "Text label",
26
        "value": "Text information",
27
        "disabled": false,
28
        "type": "number",
29
        "isnumeric": true,
30
        "min": "0",
31
        "max": "100"
32
    }
33
}}
34
{{#readonly}}
35
    {{value}}
36
{{/readonly}}
37
{{^readonly}}
38
    {{#label}}<label for="{{name}}" class="accesshide">{{label}}</label>{{/label}}
39
    <input id="{{name}}" data-uielement="text" name="{{name}}" type="{{#type}}{{.}}{{/type}}{{^type}}text{{/type}}" value="{{value}}" class="form-control" {{#disabled}}disabled{{/disabled}}{{!
40
        }} {{#isnumeric}} {{#min}}min="{{.}}" {{/min}} {{#max}}max="{{.}}" {{/max}} step="any" {{/isnumeric}}>
41
    <input type="hidden" name="old{{name}}" value="{{value}}">
42
{{/readonly}}