Proyectos de Subversion Moodle

Rev

Rev 1 | | Comparar con el anterior | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
{{!
2
    This file is part of Moodle - http://moodle.org/
3
 
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.
8
 
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.
13
 
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/>.
16
}}
17
{{!
18
    @template theme_boost/courseindexdrawercontrols
19
 
20
    This template will render "expand-all" and "collapse-all" buttons for the course index drawer.
21
 
22
    Example context (json):
23
    {
24
    }
25
}}
26
<div id="courseindexdrawercontrols" class="dropdown">
1441 ariadna 27
    <button class="btn btn-icon mx-2"
28
            id="courseindexdrawercontrolsmenubutton"
1 efrain 29
            type="button"
1441 ariadna 30
            data-bs-toggle="dropdown"
1 efrain 31
            aria-haspopup="true"
32
            aria-expanded="false"
33
            title="{{#str}}courseindexoptions, courseformat{{/str}}"
1441 ariadna 34
            aria-label="{{#str}}courseindexoptions, courseformat{{/str}}"
35
            aria-controls="courseindexdrawercontrolsmenu">
1 efrain 36
        <i class="icon fa fa-ellipsis-v fa-fw m-0" aria-hidden="true"></i>
37
    </button>
1441 ariadna 38
    <div class="dropdown-menu dropdown-menu-end" role="menu" id="courseindexdrawercontrolsmenu" aria-labelledby="courseindexdrawercontrolsmenubutton">
1 efrain 39
        <a class="dropdown-item"
40
           href="#"
41
           data-action="expandallcourseindexsections"
1441 ariadna 42
           role="menuitem"
1 efrain 43
        >
44
            {{#pix}} t/angles-down, core {{/pix}}
45
            {{#str}}expandall{{/str}}
46
        </a>
47
        <a class="dropdown-item"
48
           href="#"
49
           data-action="collapseallcourseindexsections"
1441 ariadna 50
           role="menuitem"
1 efrain 51
        >
52
            <span class="dir-rtl-hide">{{#pix}} t/angles-right, core {{/pix}}</span>
53
            <span class="dir-ltr-hide">{{#pix}} t/angles-left, core {{/pix}}</span>
54
            {{#str}}collapseall{{/str}}
55
        </a>
56
    </div>
57
</div>
58
{{#js}}
59
    require(['theme_boost/courseindexdrawercontrols'], function(component) {
60
    component.init('courseindexdrawercontrols');
61
    });
62
{{/js}}