[ 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 @template tool_templatelibrary/list_templates_page 19 20 Moodle template to the template library 21 22 The purpose of this template is build the entire page for the template library (by including smaller templates). 23 24 Classes required for JS: 25 * none 26 27 Data attributes required for JS: 28 * data-region, data-field 29 30 Context variables required for this template: 31 * allcomponents - array of components containing templates. Each component has a name and a component attribute. 32 33 }} 34 <div data-region="list-templates"> 35 <form class="form-horizontal"> 36 <div class="control-group"> 37 <label for="selectcomponent" class="control-label">{{#str}}component, tool_templatelibrary{{/str}}</label> 38 <div class="controls"> 39 <select id="selectcomponent" data-field="component"> 40 <option value="">{{#str}}all, tool_templatelibrary{{/str}}</option> 41 {{#allcomponents}} 42 <option value="{{component}}">{{name}}</option> 43 {{/allcomponents}} 44 </select> 45 </div> 46 </div> 47 <div class="control-group"> 48 <label for="search" class="control-label">{{#str}}search, tool_templatelibrary{{/str}}</label> 49 <div class="controls"> 50 <input type="text" id="search" data-field="search"/> 51 </div> 52 </div> 53 </form> 54 <hr/> 55 {{> tool_templatelibrary/search_results }} 56 57 <hr/> 58 {{> tool_templatelibrary/display_template }} 59 60 </div> 61 {{#js}} 62 require(['tool_templatelibrary/search', 'tool_templatelibrary/display']); 63 {{/js}}
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 |