Ir a la última revisión | 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 theme_universe/courseindexdrawercontrolsThis template will render "expand-all" and "collapse-all" buttons for the course index drawer.Example context (json):{}}}<div id="courseindexdrawercontrols" class="dropdown"><buttonclass="btn btn-icon btn-light"type="button"data-toggle="dropdown"aria-haspopup="true"aria-expanded="false"title="{{#str}}courseindexoptions, courseformat{{/str}}"><svg width="18" height="18" fill="none" viewBox="0 0 24 24"><pathfill="currentColor"d="M13 12C13 12.5523 12.5523 13 12 13C11.4477 13 11 12.5523 11 12C11 11.4477 11.4477 11 12 11C12.5523 11 13 11.4477 13 12Z"></path><pathfill="currentColor"d="M13 8C13 8.55228 12.5523 9 12 9C11.4477 9 11 8.55228 11 8C11 7.44772 11.4477 7 12 7C12.5523 7 13 7.44772 13 8Z"></path><pathfill="currentColor"d="M13 16C13 16.5523 12.5523 17 12 17C11.4477 17 11 16.5523 11 16C11 15.4477 11.4477 15 12 15C12.5523 15 13 15.4477 13 16Z"></path></svg></button><div class="dropdown-menu dropdown-menu-right"><aclass="dropdown-item"href="#"data-action="expandallcourseindexsections">{{#str}}expandall{{/str}}</a><aclass="dropdown-item"href="#"data-action="collapseallcourseindexsections">{{#str}}collapseall{{/str}}</a></div></div>{{#js}}require(['theme_universe/courseindexdrawercontrols'], function(component) {component.init('courseindexdrawercontrols'); });{{/js}}