Proyectos de Subversion Moodle

Rev

| 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 block_timeline/nav-view-selector
19
 
20
    This template renders the timeline sort selector.
21
 
22
    Example context (json):
23
    {}
24
}}
25
<div data-region="view-selector" class="btn-group mb-1">
26
    <button type="button" class="btn btn-outline-secondary dropdown-toggle icon-no-margin" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"
27
            aria-label="{{#str}} ariaviewselector, block_timeline{{/str}}" aria-controls="menusortby"
28
            title="{{#str}} ariaviewselector, block_timeline{{/str}}" aria-describedby="timeline-view-selector-current-selection">
29
        <span id="timeline-view-selector-current-selection" data-active-item-text>
30
            {{#sorttimelinecourses}}{{#str}} sortbycourses, block_timeline{{/str}}{{/sorttimelinecourses}}
31
            {{#sorttimelinedates}}{{#str}} sortbydates, block_timeline {{/str}}{{/sorttimelinedates}}
32
        </span>
33
    </button>
34
    <div id="menusortby" role="menu" class="dropdown-menu dropdown-menu-right list-group hidden" data-show-active-item data-skip-active-class="true">
35
        <a
36
            class="dropdown-item"
37
            href="#view_dates_{{uniqid}}-{{timelineinstanceid}}"
38
            data-toggle="tab"
39
            data-filtername="sortbydates"
40
            {{#sorttimelinedates}}aria-current="true"{{/sorttimelinedates}}
41
            aria-label="{{#str}} ariaviewselectoroption, block_timeline, {{#str}} sortbydates, block_timeline {{/str}}{{/str}}"
42
            role="menuitem"
43
        >
44
            {{#str}} sortbydates, block_timeline {{/str}}
45
        </a>
46
        <a
47
            class="dropdown-item"
48
            href="#view_courses_{{uniqid}}-{{timelineinstanceid}}"
49
            data-toggle="tab"
50
            data-filtername="sortbycourses"
51
            {{#sorttimelinecourses}}aria-current="true"{{/sorttimelinecourses}}
52
            aria-label="{{#str}} ariaviewselectoroption, block_timeline, {{#str}} sortbycourses, block_timeline {{/str}}{{/str}}"
53
            role="menuitem"
54
        >
55
            {{#str}} sortbycourses, block_timeline {{/str}}
56
        </a>
57
    </div>
58
</div>