2 This file is part of Moodle - http://moodle.org/
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.
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.
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/>.
18 @template calendar/event_item
22 The purpose of this template is to render the event item.
24 Classes required for JS:
27 Data attributes required for JS:
30 Example context (json):
35 }} data-type="event"{{!
36 }} data-course-id="{{course.id}}"{{!
37 }} data-event-id="{{id}}"{{!
39 }} data-eventtype-{{calendareventtype}}="1"{{!
40 }} data-event-title="{{name}}"{{!
41 }} data-event-count="{{eventcount}}"{{!
44 <div class="box card-header clearfix p-y-1">
45 <div class="commands pull-xs-right">
48 <a href="{{deleteurl}}" data-action="delete">
49 {{#pix}}t/delete, core, {{#str}}delete{{/str}}{{/pix}}
52 <a href="{{editurl}}" data-action="edit">
53 {{#pix}}t/edit, core, {{#str}}edit{{/str}}{{/pix}}
57 {{#icon}}{{#pix}} {{key}}, {{component}}, {{alttext}} {{/pix}}{{/icon}}
58 <h3 class="name d-inline-block">{{name}}</h3>
59 <span class="date pull-xs-right m-r-1">{{{formattedtime}}}</span>
61 <div class="description card-block calendar_event_{{eventtype}}">
62 <p>{{{description}}}</p>
64 <div><a href="{{url}}">{{course.fullname}}</a></div>
66 {{> core_calendar/event_subscription}}
68 <a href="{{url}}">{{#str}} gotoactivity, core_calendar {{/str}}</a>
71 <div><a href="{{url}}">{{{course.fullname}}}</a></div>
72 <div>{{{groupname}}}</div>