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/popover_region
|
|
|
19 |
|
|
|
20 |
This template will render a popover region
|
|
|
21 |
|
|
|
22 |
Classes required for JS:
|
|
|
23 |
* none
|
|
|
24 |
|
|
|
25 |
Data attributes required for JS:
|
|
|
26 |
* All data attributes are required
|
|
|
27 |
|
|
|
28 |
Context variables required for this template:
|
|
|
29 |
* none
|
|
|
30 |
|
|
|
31 |
Example context (json):
|
|
|
32 |
{
|
|
|
33 |
}
|
|
|
34 |
|
|
|
35 |
}}
|
|
|
36 |
<div class="popover-region collapsed {{$classes}}{{/classes}}"
|
|
|
37 |
{{$attributes}}{{/attributes}}
|
|
|
38 |
data-region="popover-region">
|
|
|
39 |
<div class="popover-region-toggle rui-topbar-special-btn rui-tooltip--bottom border-0"
|
|
|
40 |
data-region="popover-region-toggle"
|
|
|
41 |
role="button"
|
|
|
42 |
aria-controls="popover-region-container-{{uniqid}}"
|
|
|
43 |
aria-haspopup="true"
|
|
|
44 |
aria-label="{{$togglelabel}}{{#str}}showpopovermenu{{/str}}{{/togglelabel}}"
|
|
|
45 |
data-placement="left"
|
|
|
46 |
data-title="{{#str}} notifications, message {{/str}}"
|
|
|
47 |
tabindex="0">
|
|
|
48 |
{{$togglecontent}}{{/togglecontent}}
|
|
|
49 |
</div>
|
|
|
50 |
<div {{$containerattributes}}{{/containerattributes}}
|
|
|
51 |
id="popover-region-container-{{uniqid}}"
|
|
|
52 |
class="popover-region-container"
|
|
|
53 |
data-region="popover-region-container"
|
|
|
54 |
aria-expanded="false"
|
|
|
55 |
aria-hidden="true"
|
|
|
56 |
aria-label="{{$containerlabel}}{{/containerlabel}}"
|
|
|
57 |
role="region">
|
|
|
58 |
<div class="popover-region-header-container">
|
|
|
59 |
<h4 class="popover-region-header-text" data-region="popover-region-header-text">{{$headertext}}{{/headertext}}</h4>
|
|
|
60 |
<div class="popover-region-header-actions" data-region="popover-region-header-actions">{{$headeractions}}{{/headeractions}}</div>
|
|
|
61 |
</div>
|
|
|
62 |
<div class="popover-region-content-container mt-2" data-region="popover-region-content-container">
|
|
|
63 |
<div class="popover-region-content" data-region="popover-region-content">
|
|
|
64 |
{{$content}}{{/content}}
|
|
|
65 |
</div>
|
|
|
66 |
{{> core/loading }}
|
|
|
67 |
</div>
|
|
|
68 |
{{$anchor}}
|
|
|
69 |
{{#urls.seeall}}
|
|
|
70 |
<a class="see-all-link d-inline-flex align-items-center w-100 justify-content-between"
|
|
|
71 |
href="{{{.}}}">
|
|
|
72 |
{{#str}} seeall, message {{/str}}
|
|
|
73 |
<svg width="20" height="20" fill="none" viewBox="0 0 24 24">
|
|
|
74 |
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M13.75 6.75L19.25 12L13.75 17.25"></path>
|
|
|
75 |
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M19 12H4.75"></path>
|
|
|
76 |
</svg>
|
|
|
77 |
</a>
|
|
|
78 |
{{/urls.seeall}}
|
|
|
79 |
{{/anchor}}
|
|
|
80 |
</div>
|
|
|
81 |
</div>
|