Rev 1 | AutorÃa | Comparar con el anterior | 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 core/editswitchThis template renders the top navbar.Example context (json):{"url": "http://localhost/","sesskey": "sesskey","edit": 1,"adminedit": true,"checked": "","string": "Edit on","legacyseturl": "/editmode.php"}}}<div class="divider border-start h-75 align-self-center ms-1 me-3"></div><form action="{{{legacyseturl}}}" method="post" class="d-flex align-items-center editmode-switch-form"><div class="input-group"><label class="me-2 mb-0 form-check-label {{#checked}}text-primary{{/checked}}" for="{{uniqid}}-editingswitch">{{#str}} editmode {{/str}}</label><div class="form-check form-switch"><input type="checkbox"{{!}} name="setmode"{{!}}{{#checked}}{{!}} checked{{!}}{{/checked}}{{!}} class="form-check-input"{{!}} id="{{uniqid}}-editingswitch"{{!}} data-context="{{{pagecontextid}}}"{{!}} data-pageurl="{{{pageurl}}}"{{!}}><span class="form-check-label"> </span></div></div><input type="hidden" name="sesskey" value="{{{sesskey}}}"><input type="hidden" name="pageurl" value="{{{pageurl}}}"><input type="hidden" name="context" value="{{{pagecontextid}}}"><noscript><input type="submit" value="{{#str}}setmode, core{{/str}}"></noscript></form>{{#js}}require(['core/edit_switch'], function(editSwitch) {editSwitch.init('{{uniqid}}-editingswitch');});{{/js}}