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_calendar/event_summary_modal
|
|
|
19 |
|
|
|
20 |
This template renders the calendar events summary modal.
|
|
|
21 |
|
|
|
22 |
Example context (json):
|
|
|
23 |
{
|
|
|
24 |
"title": "Assignment due 1"
|
|
|
25 |
}
|
|
|
26 |
}}
|
|
|
27 |
{{< core/modal-sm }}
|
|
|
28 |
{{$footer}}
|
|
|
29 |
|
|
|
30 |
{{#action.actionable}}
|
|
|
31 |
<a href="{{action.url}}">{{{action.name}}}</a>
|
|
|
32 |
{{/action.actionable}}
|
|
|
33 |
{{^action.actionable}}
|
|
|
34 |
{{#isactionevent}}
|
|
|
35 |
<a href="{{url}}">{{#str}} gotoactivity, core_calendar {{/str}}</a>
|
|
|
36 |
{{/isactionevent}}
|
|
|
37 |
{{/action.actionable}}
|
|
|
38 |
|
|
|
39 |
{{^isactionevent}}
|
|
|
40 |
{{#canedit}}
|
|
|
41 |
<button type="button" class="btn btn-sm btn-primary" data-action="edit">
|
|
|
42 |
<svg class="rui-btn--icon mr-2" width="20" height="20" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
|
43 |
<path d="M4.75 19.25L9 18.25L18.5625 8.6875C19.46 7.79004 19.46 6.33496 18.5625 5.4375C17.665 4.54004 16.21 4.54004 15.3125 5.4375L5.75 15L4.75 19.25Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path>
|
|
|
44 |
</svg>
|
|
|
45 |
{{#str}} edit {{/str}}
|
|
|
46 |
</button>
|
|
|
47 |
{{/canedit}}
|
|
|
48 |
{{/isactionevent}}
|
|
|
49 |
|
|
|
50 |
{{#candelete}}
|
|
|
51 |
<button type="button" class="btn btn-sm btn-icon btn-danger ml-auto" data-action="delete" title="{{#str}} delete {{/str}}">
|
|
|
52 |
<svg width="20" height="20" fill="none" viewBox="0 0 24 24">
|
|
|
53 |
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6.75 7.75L7.59115 17.4233C7.68102 18.4568 8.54622 19.25 9.58363 19.25H14.4164C15.4538 19.25 16.319 18.4568 16.4088 17.4233L17.25 7.75"></path>
|
|
|
54 |
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9.75 7.5V6.75C9.75 5.64543 10.6454 4.75 11.75 4.75H12.25C13.3546 4.75 14.25 5.64543 14.25 6.75V7.5"></path>
|
|
|
55 |
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 7.75H19"></path>
|
|
|
56 |
</svg>
|
|
|
57 |
</button>
|
|
|
58 |
{{/candelete}}
|
|
|
59 |
|
|
|
60 |
{{/footer}}
|
|
|
61 |
{{/ core/modal-sm }}
|