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">
26
    <button type="button" class="btn btn-sm btn-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" title="{{#str}} ariaviewselector, block_timeline{{/str}}" aria-describedby="timeline-view-selector-current-selection">
28
        <span class="rui-btn--icon">
29
            <svg width="16" height="16" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
30
                <path d="M9.25 14L4.75 14" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
31
                <path d="M11.25 18.25L4.75 18.25" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
32
                <path d="M8.25 9.75L4.75 9.75" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
33
                <path d="M12.75 14.75L16 18.25L19.25 14.75" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
34
                <path d="M16 5.75V18.25" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
35
            </svg>
36
        </span>
37
        <span id="timeline-view-selector-current-selection" class="sr-only" data-active-item-text>
38
            {{#sorttimelinecourses}}{{#str}} sortbycourses, block_timeline{{/str}}{{/sorttimelinecourses}}
39
            {{#sorttimelinedates}}{{#str}} sortbydates, block_timeline {{/str}}{{/sorttimelinedates}}
40
        </span>
41
    </button>
42
    <div id="menusortby" role="menu" class="dropdown-menu dropdown-menu-right hidden" data-show-active-item data-skip-active-class="true">
43
        <a
44
            class="dropdown-item"
45
            href="#view_dates_{{uniqid}}"
46
            data-toggle="tab"
47
            data-filtername="sortbydates"
48
            {{#sorttimelinedates}}aria-current="true"{{/sorttimelinedates}}
49
            aria-label="{{#str}} ariaviewselectoroption, block_timeline, {{#str}} sortbydates, block_timeline {{/str}}{{/str}}"
50
            role="menuitem"
51
        >
52
            <span class="rui-btn--icon">
53
                <svg class="mr-2" width="18" height="18" fill="none" viewBox="0 0 24 24">
54
                    <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4.75 8.75C4.75 7.64543 5.64543 6.75 6.75 6.75H17.25C18.3546 6.75 19.25 7.64543 19.25 8.75V17.25C19.25 18.3546 18.3546 19.25 17.25 19.25H6.75C5.64543 19.25 4.75 18.3546 4.75 17.25V8.75Z"></path>
55
                    <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 4.75V8.25"></path>
56
                    <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M16 4.75V8.25"></path>
57
                    <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7.75 10.75H16.25"></path>
58
                </svg>
59
            </span>
60
            <span>{{#str}} sortbydates, block_timeline {{/str}}</span>
61
        </a>
62
        <a
63
            class="dropdown-item"
64
            href="#view_courses_{{uniqid}}"
65
            data-toggle="tab"
66
            data-filtername="sortbycourses"
67
            {{#sorttimelinecourses}}aria-current="true"{{/sorttimelinecourses}}
68
            aria-label="{{#str}} ariaviewselectoroption, block_timeline, {{#str}} sortbycourses, block_timeline {{/str}}{{/str}}"
69
            role="menuitem"
70
        >
71
            <span class="rui-btn--icon">
72
                <svg class="mr-2" width="18" height="18" fill="none" viewBox="0 0 24 24">
73
                    <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19.25 5.75C19.25 5.19772 18.8023 4.75 18.25 4.75H14C12.8954 4.75 12 5.64543 12 6.75V19.25L12.8284 18.4216C13.5786 17.6714 14.596 17.25 15.6569 17.25H18.25C18.8023 17.25 19.25 16.8023 19.25 16.25V5.75Z"></path>
74
                    <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4.75 5.75C4.75 5.19772 5.19772 4.75 5.75 4.75H10C11.1046 4.75 12 5.64543 12 6.75V19.25L11.1716 18.4216C10.4214 17.6714 9.40401 17.25 8.34315 17.25H5.75C5.19772 17.25 4.75 16.8023 4.75 16.25V5.75Z"></path>
75
                </svg>
76
            </span>
77
            <span>{{#str}} sortbycourses, block_timeline {{/str}}</span>
78
        </a>
79
    </div>
80
</div>