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 small">
|
|
|
39 |
<span>{{{name}}}</span>
|
|
|
40 |
<span class="btn btn-xs btn-info p-1">
|
|
|
41 |
<svg width="14" height="14" fill="none" viewBox="0 0 24 24">
|
|
|
42 |
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="3" d="M12 5.75V18.25"></path>
|
|
|
43 |
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="3" d="M18.25 12L5.75 12"></path>
|
|
|
44 |
</svg>
|
|
|
45 |
</span>
|
|
|
46 |
</span>
|
|
|
47 |
</a>
|
|
|
48 |
{{/disabled}}
|
|
|
49 |
{{#disabled}}
|
|
|
50 |
<div title="{{title}}"
|
|
|
51 |
class="list-group-item list-group-item-action pr-2 bg-transparent text-muted"
|
|
|
52 |
data-region="sidebar-item"
|
|
|
53 |
>
|
|
|
54 |
<span class="d-flex align-items-center justify-content-between small">
|
|
|
55 |
{{{name}}}
|
|
|
56 |
{{#pix}} i/info, core {{/pix}}
|
|
|
57 |
</span>
|
|
|
58 |
</div>
|
|
|
59 |
{{/disabled}}
|