MDL-68147 course: Remove bold styling in recommended activity admin page
[moodle.git] / course / templates / activity_list.mustache
CommitLineData
cd09777d
AG
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 core_course/activity_list
19
20 Displays a list of activities to recommend in the activity chooser.
21
22 No example given as the js will fire and create records from the template library page.
23}}
24{{#categories}}
25<h3>{{categoryname}}</h3>
26<table class="table table-striped table-hover">
27 <thead>
28 <tr class="d-flex">
29 <th scope="col" class="col-7 c0">{{#str}}module, course{{/str}}</th>
30 <th scope="col" class="col-5 c1">{{#str}}recommend, course{{/str}}</th>
31 </tr>
32 </thead>
33 <tbody>
34 {{#categorydata}}
35 <tr class="d-flex">
98ec40a8 36 <td class="col-7 c0"><span>{{{icon}}}</span>{{name}}</td>
cd09777d
AG
37 {{#id}}
38 <td class="col-5 c1 colselect">
39 <input class="activity-recommend-checkbox" type="checkbox" aria-label="{{#str}}recommendcheckbox, course, {{name}}{{/str}}" data-area="{{componentname}}" data-id="{{id}}" {{#recommended}}checked="checked"{{/recommended}} />
40 </td>
41 {{/id}}
42 {{^id}}
43 <td class="col-5"></td>
44 {{/id}}
45 </tr>
46 {{/categorydata}}
47 </tbody>
48</table>
49{{/categories}}
50{{#js}}
51require([
52 'core_course/recommendations',
53], function(Recommendations) {
54 Recommendations.init();
55});
b3fe33ac 56{{/js}}