AutorÃa | Ultima modificación | Ver Log |
{{!This file is part of Moodle - http://moodle.org/Moodle is free software: you can redistribute it and/or modifyit under the terms of the GNU General Public License as published bythe 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 ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See theGNU General Public License for more details.You should have received a copy of the GNU General Public Licensealong with Moodle. If not, see <http://www.gnu.org/licenses/>.}}{{!@template block_point_view/enabledisableClasses required for JS:* enable-disable* reactionsData attributes required for JS:* data-enableContext variables required for this template:* helpbutton HTML fragment for help button.* enablename id attribute for enable button.* enablelabel Label of enable button.* disablename id attribute for disable button.* disablelabel Label of disable button.* datattr HTML data attributes for both buttons.Example context (json):{"helpbutton": "<span></span>","enablename": "enable_type_quiz","enablelabel": "Enable all Quizzes","disablename": "disable_type_quiz","disablelabel": "Disable all Quizzes","dataattr": ""}}}<span class="enable-disable reactions">{{{helpbutton}}}<button id="{{enablename}}" class="btn btn-outline-success mr-1" type="button" data-enable="1" {{{dataattr}}}>{{{enablelabel}}}</button><button id="{{disablename}}" class="btn btn-outline-danger" type="button" data-enable="0" {{{dataattr}}}>{{{disablelabel}}}</button></span>