[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
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 Set scale configuration for the competency framework. 19 20 Classes required for JS: 21 * none 22 23 Data attibutes required for JS: 24 * data-field 25 26 Context variables required for this template: 27 * scales Array of id / name pairs. 28 29 Example context (json): 30 { 31 "scales": [ 32 { "id": 1, "name": "Competent" }, 33 { "id": 2, "name": "Not competent"} 34 ] 35 } 36 }} 37 <div> 38 <table class="table table-condensed"> 39 <thead> 40 <tr> 41 <th scope="col">{{#str}}scalevalue, tool_lp{{/str}}</th> 42 <th scope="col">{{#str}}default, tool_lp{{/str}}{{#pix }} req, core, {{#str}}requiredelement, form{{/str}} {{/pix }}</th> 43 <th scope="col">{{#str}}proficient, tool_lp{{/str}}{{#pix }} req, core, {{#str}}requiredelement, form{{/str}}{{/pix }}</th> 44 </tr> 45 </thead> 46 <tbody> 47 {{#scales}} 48 <tr class="tool_lp_scale_config"> 49 <td>{{name}}</td> 50 <td><input type="radio" name="default_{{uniqid}}" data-field="tool_lp_scale_default_{{id}}" class="tool_lp_scale_default"/></td> 51 <td><input type="checkbox" name="proficient" data-field="tool_lp_scale_proficient_{{id}}" 52 class="tool_lp_scale_proficient"/></td> 53 </tr> 54 {{/scales}} 55 </tbody> 56 </table> 57 </div> 58 59 <div data-region="scale-buttons"> 60 <input type="button" data-action="close" value="{{#str}}closebuttontitle{{/str}}"/> 61 <input type="button" data-action="cancel" value="{{#str}}cancel{{/str}}"/> 62 </div>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Thu Aug 11 10:00:09 2016 | Cross-referenced by PHPXref 0.7.1 |