MDL-64901 block_myoverview: admin settings to control available layouts
[moodle.git] / blocks / myoverview / templates / main.mustache
CommitLineData
1c68e83b
CB
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/main
19
20 This template renders the main content area for the myoverview block.
50819832
RW
21
22 Example context (json):
23 {}
1c68e83b
CB
24}}
25
44b54926 26<div id="block-myoverview-{{uniqid}}" class="block-myoverview block-cards" data-region="myoverview" role="navigation">
e4b4b9e7 27
4fd6b770 28 <div data-region="filter" class="d-flex align-items-center flex-wrap" aria-label="{{#str}} aria:controls, block_myoverview {{/str}}">
e4b4b9e7
BB
29 {{> block_myoverview/nav-grouping-selector }}
30
31 {{> block_myoverview/nav-sort-selector }}
5f59a4c0
TD
32 {{#displaydropdown}}
33 {{> block_myoverview/nav-display-selector }}
34 {{/displaydropdown}}
e4b4b9e7
BB
35 </div>
36
37 <div class="container-fluid p-0">
44eb44e4 38 {{> block_myoverview/courses-view }}
44eb44e4 39 </div>
1c68e83b 40</div>
e4b4b9e7
BB
41{{#js}}
42require(
43[
44 'jquery',
45 'block_myoverview/main',
46],
47function(
48 $,
49 Main
50) {
51 var root = $('#block-myoverview-{{uniqid}}');
52 Main.init(root);
53});
54{{/js}}