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 core_reportbuilder/local/sidebar-menu/card_item
|
|
|
19 |
|
|
|
20 |
Template for showing a single element in a sidebar menu card.
|
|
|
21 |
|
|
|
22 |
Example context (json):
|
|
|
23 |
{
|
|
|
24 |
"name": "Manually added users",
|
|
|
25 |
"identifier": "tool_reportbuilder:users"
|
|
|
26 |
}
|
|
|
27 |
}}
|
|
|
28 |
{{^disabled}}
|
|
|
29 |
<a href="#"
|
|
|
30 |
title="{{title}}"
|
|
|
31 |
role="button"
|
|
|
32 |
class="list-group-item list-group-item-action pr-2 bg-transparent"
|
|
|
33 |
data-region="sidebar-item"
|
|
|
34 |
data-action="{{action}}"
|
|
|
35 |
data-unique-identifier="{{identifier}}"
|
|
|
36 |
data-name="{{name}}"
|
|
|
37 |
>
|
|
|
38 |
<span class="d-flex align-items-center justify-content-between">
|
|
|
39 |
{{{name}}}
|
|
|
40 |
{{#pix}} t/add, core {{/pix}}
|
|
|
41 |
</span>
|
|
|
42 |
</a>
|
|
|
43 |
{{/disabled}}
|
|
|
44 |
{{#disabled}}
|
|
|
45 |
<div title="{{#str}} notavailable, core {{/str}}"
|
|
|
46 |
class="list-group-item list-group-item-action pr-2 bg-transparent text-muted"
|
|
|
47 |
data-region="sidebar-item"
|
|
|
48 |
>
|
|
|
49 |
<span class="d-flex align-items-center justify-content-between">
|
|
|
50 |
{{{name}}}
|
|
|
51 |
{{#pix}} i/info, core {{/pix}}
|
|
|
52 |
</span>
|
|
|
53 |
</div>
|
|
|
54 |
{{/disabled}}
|