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 core_course/activityinstance
20 Activity completion selector.
22 Example context (json):
26 "modname": "Test activity",
27 "icon": "https://raw.githubusercontent.com/moodle/moodle/master/mod/feedback/pix/icon.png",
30 "icon": "https://raw.githubusercontent.com/moodle/moodle/master/pix/i/completion-manual-enabled.png"
36 <div class="row m-b-1 row-fluid">
37 <div class="activityinstance col-xs-6 span6">
38 <div class="mod-indent-outer"></div>
41 <label class="accesshide" for="selectactivity_{{cmid}}">{{#str}}select, completion{{/str}} {{modname}}</label>
42 <input type="checkbox" id="selectactivity_{{cmid}}" class="m-r-1" name="cmid[]" data-section="{{sectionnumber}}" value="{{cmid}}" aria-label="{{#str}}checkactivity, completion, {{{modname}}}{{/str}}">
45 <img src="{{icon}}" class="iconlarge activityicon" alt=" " role="presentation" />
46 <span class="instancename">{{{modname}}}</span>
50 <div class="activity-completionstatus col-xs-6 span6" id="completionstatus_{{cmid}}">
51 <div class="col-sm-1 span1 p-l-0">
52 {{#completionstatus.icon}}
53 {{{completionstatus.icon}}}
54 {{/completionstatus.icon}}
55 {{^completionstatus.icon}}
56 <span class="m-r-3"></span>
57 {{/completionstatus.icon}}
59 <div class="col-sm-11 span11 p-l-0">
60 <span class="text-muted muted">{{{completionstatus.string}}}</span>