2 This file is part of Moodle - http://moodle.org/
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.
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.
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/>.
18 @template tool_lp/scale_configuration_page
20 Set scale configuration for the competency framework.
22 Classes required for JS:
25 Data attibutes required for JS:
28 Context variables required for this template:
29 * scales Array of id / name pairs.
31 Example context (json):
34 { "id": 1, "name": "Competent" },
35 { "id": 2, "name": "Not competent" }
40 <table class="table table-condensed">
43 <th scope="col">{{#str}}scalevalue, tool_lp{{/str}}</th>
44 <th scope="col">{{#str}}default, tool_lp{{/str}}{{#pix }} req, core, {{#str}}requiredelement, form{{/str}} {{/pix }}</th>
45 <th scope="col">{{#str}}proficient, tool_lp{{/str}}{{#pix }} req, core, {{#str}}requiredelement, form{{/str}}{{/pix }}</th>
50 <tr class="tool_lp_scale_config">
52 <td><input type="radio" name="default_{{uniqid}}" data-field="tool_lp_scale_default_{{id}}" class="tool_lp_scale_default"/></td>
53 <td><input type="checkbox" name="proficient" data-field="tool_lp_scale_proficient_{{id}}"
54 class="tool_lp_scale_proficient"/></td>
61 <div data-region="scale-buttons" class="mt-1 float-sm-right">
62 <input type="button" class="btn btn-secondary" data-action="close" value="{{#str}}closebuttontitle{{/str}}"/>
63 <input type="button" class="btn btn-secondary" data-action="cancel" value="{{#str}}cancel{{/str}}"/>
65 <div class="clearfix"></div>