weekly release 3.6dev
[moodle.git] / blocks / timeline / templates / nav-day-filter.mustache
CommitLineData
1e44de35
RW
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-day-filter
19
20 This template renders the day range selector for the timeline view.
21
22 Example context (json):
23 {}
24}}
25<div data-region="day-filter" class="dropdown">
26 <button type="button" class="btn btn-outline-secondary dropdown-toggle icon-no-margin" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
27 {{#pix}} i/duration {{/pix}}
28 <span class="sr-only">
29 {{#str}} ariadayfilter, block_timeline {{/str}}
30 <span data-active-item-text>{{#str}} next30days, block_timeline {{/str}}</span>
31 </span>
32 </button>
33 <div role="menu" class="dropdown-menu" data-show-active-item>
34 <a
35 class="dropdown-item"
36 href="#"
37 data-from="-14"
38 aria-label="{{#str}} ariadayfilteroption, block_timeline, {{#str}} all, core {{/str}}{{/str}}"
39 >
40 {{#str}} all, core {{/str}}
41 </a>
42 <a
43 class="dropdown-item"
44 href="#"
45 data-from="-14"
46 data-to="0"
47 aria-label="{{#str}} ariadayfilteroption, block_timeline, {{#str}} overdue, block_timeline {{/str}}{{/str}}"
48 >
49 {{#str}} overdue, block_timeline {{/str}}
50 </a>
51 <div class="dropdown-divider"></div>
52 <h6 class="dropdown-header">{{#str}} duedate, block_timeline {{/str}}</h6>
53 <a
54 class="dropdown-item"
55 href="#"
56 data-from="0"
57 data-to="7"
58 aria-label="{{#str}} ariadayfilteroption, block_timeline, {{#str}} next7days, block_timeline {{/str}}{{/str}}"
59 >
60 {{#str}} next7days, block_timeline {{/str}}
61 </a>
62 <a
63 class="dropdown-item active"
64 href="#"
65 data-from="0"
66 data-to="30"
67 aria-label="{{#str}} ariadayfilteroption, block_timeline, {{#str}} next30days, block_timeline {{/str}}{{/str}}"
68 >
69 {{#str}} next30days, block_timeline {{/str}}
70 </a>
71 <a
72 class="dropdown-item"
73 href="#"
74 data-from="0"
75 data-to="90"
76 aria-label="{{#str}} ariadayfilteroption, block_timeline, {{#str}} next3months, block_timeline {{/str}}{{/str}}"
77 >
78 {{#str}} next3months, block_timeline {{/str}}
79 </a>
80 <a
81 class="dropdown-item"
82 href="#"
83 data-from="0"
84 data-to="180"
85 aria-label="{{#str}} ariadayfilteroption, block_timeline, {{#str}} next6months, block_timeline {{/str}}{{/str}}"
86 >
87 {{#str}} next6months, block_timeline {{/str}}
88 </a>
89 </div>
90</div>