X7ROOT File Manager
Current Path:
/home/cbholdings/pasukulu/course/templates
home
/
cbholdings
/
pasukulu
/
course
/
templates
/
📁
..
📄
activity_date.mustache
(968 B)
📄
activity_info.mustache
(2.78 KB)
📄
activity_list.mustache
(3.21 KB)
📄
activity_navigation.mustache
(2.79 KB)
📄
activitychooser.mustache
(10.26 KB)
📄
activitychooserbutton.mustache
(1.51 KB)
📄
activitychooserbuttonactivity.mustache
(1.57 KB)
📄
activityinstance.mustache
(2.47 KB)
📄
bulkactivitycompletion.mustache
(4.83 KB)
📄
category_actionbar.mustache
(4.25 KB)
📄
completion_action_bar.mustache
(1.75 KB)
📄
completion_automatic.mustache
(2.52 KB)
📄
completion_manual.mustache
(2.86 KB)
📄
course_search_form.mustache
(1.77 KB)
📄
coursecard.mustache
(3.07 KB)
📄
coursecards.mustache
(1.41 KB)
📄
defaultactivitycompletion.mustache
(5.06 KB)
📄
editbulkactivitycompletion.mustache
(1.37 KB)
📄
editdefaultcompletion.mustache
(1.61 KB)
📄
favouriteicon.mustache
(1.37 KB)
📁
local
📄
manage_category_actionbar.mustache
(4 KB)
📄
no-courses.mustache
(1.51 KB)
📄
participants_actionbar.mustache
(4.26 KB)
📄
placeholder-course.mustache
(1.11 KB)
📄
view-cards.mustache
(1.83 KB)
Editing: defaultactivitycompletion.mustache
{{! This file is part of Moodle - http://moodle.org/ Moodle is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Moodle is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Moodle. If not, see <http://www.gnu.org/licenses/>. }} {{! @template core_course/defaultactivitycompletion Activity completion selector. Example context (json): { "courseid": "2", "sesskey": "AAAAAA", "modules": [{ "id": "10", "formattedname": "Assignment", "canmanage": true, "icon": "https://raw.githubusercontent.com/moodle/moodle/master/mod/assign/pix/monologo.png", "completionstatus": { "string": "Manual", "icon": "https://raw.githubusercontent.com/moodle/moodle/master/pix/i/completion-manual-enabled.png" } }] } }} <div class="container-fluid"> <div class="row mb-2"> <div class="col">{{#str}}bulkactivitydetail, core_completion{{/str}}</div> </div> <form method="post" action="editdefaultcompletion.php" class="mform" id="theform"> <div class="row mb-2"> <div class="col"> <input type="submit" value="{{#str}}edit{{/str}}" class="btn btn-primary" name="submitbutton" aria-label="{{#str}}updateactivities, completion{{/str}}" disabled/> </div> </div> <div class="row mb-1"> <div class="col-6"> <input type="checkbox" class="mastercheck mr-1" aria-label="{{#str}}checkall, completion{{/str}}"> <label class="font-weight-bold">{{#str}}activitieslabel, core_completion{{/str}}</label> </div> <div class="col-6"> <label class="font-weight-bold">{{#str}}completion, core_completion{{/str}}</label> <span>{{{helpicon}}}</span> </div> </div> <hr class="row"> <div class="modules"> {{#modules}} {{#canmanage}} <div class="mb-1"> <div class="row mb-1"> <div class="col-6"> <label class="accesshide" for="modtype_{{id}}">{{#str}}select, core_completion{{/str}} {{formattedname}}</label> <input id="modtype_{{id}}" type="checkbox" class="mr-1" name="modids[]" value="{{id}}" aria-label="{{#str}}checkactivity, completion, {{{formattedname}}}{{/str}}"> <img class="iconlarge activityicon" src="{{icon}}" alt=" " role="presentation" /> <span>{{{formattedname}}}</span> </div> <div class="activity-completionstatus col-6"> <div class="col-sm-1 pl-0"> {{#completionstatus.icon}} {{{completionstatus.icon}}} {{/completionstatus.icon}} {{^completionstatus.icon}} <span class="mr-3"></span> {{/completionstatus.icon}} </div> <div class="col-sm-11 pl-0"> <span class="text-muted muted">{{{completionstatus.string}}}</span> </div> </div> </div> </div> <hr class="row"> {{/canmanage}} {{/modules}} </div> <input type="hidden" name="id" value="{{courseid}}" /> <input type="hidden" name="sesskey" value="{{sesskey}}" /> <div class="row"> <div class="col"> <input type="submit" value="{{#str}}edit{{/str}}" class="btn btn-primary" name="submitbutton" disabled/> </div> </div> </form> </div> {{#js}} require([ 'jquery', ], function($) { $('.mastercheck').click(function() { var checked = $('.mastercheck').is(':checked'); $('input[type=checkbox]').each(function() { $(this).prop('checked', checked); $(this).trigger('change'); }); }); $('input[type=checkbox][id^=modtype_]').change(function() { if ($(this).is(':checked')) { $('[name=submitbutton]').removeAttr('disabled'); } else { // Is this the last activity checkbox to be un-checked? If so, disable the edit button. var somechecked = false; $('input[type=checkbox][id^=modtype_]').each(function() { if ($(this).is(':checked')) { somechecked = true; return false; } return true; }); if (!somechecked) { $('[name=submitbutton]').attr('disabled', 'disabled'); } } }); }); {{/js}}
Upload File
Create Folder