MDL-63058 core_favourites: add existence checks to the service layer
[moodle.git] / blocks / myoverview / templates / nav-display-selector.mustache
CommitLineData
e4b4b9e7
BB
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_myoverview/nav-display-selector
19
20 This template renders display dropdown.
21
22 Example context (json):
23 {}
24}}
25<div class="dropdown">
26 <button id="displaydropdown" type="button" class="btn btn-outline-secondary dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"
27 aria-label="{{#str}} aria:displaydropdown, block_myoverview {{/str}}">
28 <span class="d-sm-inline-block">{{#pix}} a/view_icon_active {{/pix}}</span>
29 </button>
30 <ul class="dropdown-menu" data-show-active-item aria-labelledby="displaydropdown">
31 <li>
32 <a class="dropdown-item active" href="#" data-display-option="display" data-value="cards" aria-label="{{#str}} aria:card, block_myoverview {{/str}}" aria-controls="courses-view-{{uniqid}}">
33 {{#str}} card, block_myoverview {{/str}}
34 </a>
35 </li>
36 <li>
37 <a class="dropdown-item" href="#" data-display-option="display" data-value="list" aria-label="{{#str}} aria:list, block_myoverview {{/str}}" aria-controls="courses-view-{{uniqid}}">
38 {{#str}} list, block_myoverview {{/str}}
39 </a>
40 </li>
41 <li>
42 <a class="dropdown-item" href="#" data-display-option="display" data-value="summary" aria-label="{{#str}} aria:summary, block_myoverview {{/str}}" aria-controls="courses-view-{{uniqid}}">
43 {{#str}} summary, block_myoverview {{/str}}
44 </a>
45 </li>
46 </ul>
47</div>