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_myoverview/zero-state
|
|
|
19 |
|
|
|
20 |
This template renders the main content area when there is no course to show.
|
|
|
21 |
|
|
|
22 |
Example context (json):
|
|
|
23 |
{
|
|
|
24 |
"nocoursesimg": "https://moodle.org/img/nocourses.svg",
|
|
|
25 |
"title": "No courses",
|
|
|
26 |
"text": "Moodle community",
|
|
|
27 |
"intro": "Come back later",
|
|
|
28 |
"buttons": [
|
|
|
29 |
{
|
|
|
30 |
"id": "buttons1",
|
|
|
31 |
"method": "get",
|
|
|
32 |
"url": "#",
|
|
|
33 |
"primary": true,
|
|
|
34 |
"label": "Button1"
|
|
|
35 |
},
|
|
|
36 |
{
|
|
|
37 |
"id": "buttons2",
|
|
|
38 |
"method": "get",
|
|
|
39 |
"url": "#",
|
|
|
40 |
"primary": false,
|
|
|
41 |
"label": "Button2"
|
|
|
42 |
}
|
|
|
43 |
]
|
|
|
44 |
}
|
|
|
45 |
}}
|
|
|
46 |
|
|
|
47 |
<div class="block-myoverview block-cards" data-region="myoverview" role="navigation">
|
|
|
48 |
<hr class="mt-0"/>
|
|
|
49 |
|
|
|
50 |
<div class="container-fluid p-0">
|
|
|
51 |
<div class="text-xs-center text-center mt-3" data-region="empty-message">
|
|
|
52 |
<img class="empty-placeholder-image-lg mt-1"
|
|
|
53 |
src="{{nocoursesimg}}"
|
|
|
54 |
alt=""
|
|
|
55 |
>
|
|
|
56 |
<h5 class="h5 mt-3 mb-0">{{{ title }}}</h5>
|
|
|
57 |
<p class="mt-3 mb-0">{{{ intro }}}</p>
|
|
|
58 |
|
|
|
59 |
<div class="mt-5 mb-0 whitebutton" id="action_bar">
|
|
|
60 |
{{#buttons}}
|
|
|
61 |
{{>core/single_button}}
|
|
|
62 |
{{/buttons}}
|
|
|
63 |
</div>
|
|
|
64 |
</div>
|
|
|
65 |
</div>
|
|
|
66 |
</div>
|