Merge branch 'MDL-68343-master' of git://github.com/rezaies/moodle
[moodle.git] / grade / report / singleview / templates / text_attribute.mustache
CommitLineData
ec3857fe
FM
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{{!
28cbff4a
MM
18 @template gradereport_singleview/text_attribute
19
ec3857fe 20 Text attribute.
28cbff4a
MM
21
22 Example context (json):
23 {
24 "name": "Awesome-report",
25 "label": "Text label",
26 "value": "Text information",
27 "tabindex": "1",
28 "disabled": "true"
29 }
ec3857fe 30}}
1031303a 31{{#label}}<label for="{{name}}" class="accesshide">{{label}}</label>{{/label}}
08cefc7e 32<input id="{{name}}" name="{{name}}" type="text" value="{{value}}" class="form-control" {{#tabindex}}tabindex="{{.}}"{{/tabindex}} {{#disabled}}disabled{{/disabled}}>
ec3857fe 33<input type="hidden" name="old{{name}}" value="{{value}}">