mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 10:26:40 +02:00
59 lines
2 KiB
Text
59 lines
2 KiB
Text
{{!
|
|
This file is part of Moodle - http://moodle.org/
|
|
|
|
Moodle is free software: you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
(at your option) any later version.
|
|
|
|
Moodle is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
|
}}
|
|
{{!
|
|
@template core_calendar/event_summary_body
|
|
|
|
This template renders the body of calendar events summary modal.
|
|
|
|
Example context (json):
|
|
{
|
|
"timestart": 1490320388,
|
|
"description": "An random event description",
|
|
"eventtype": "User",
|
|
"source": "Ical imported",
|
|
"groupname": "Group 1"
|
|
}
|
|
}}
|
|
<div{{!
|
|
}} data-region="summary-modal-container"{{!
|
|
}} data-event-id="{{id}}"{{!
|
|
}} data-event-title="{{name}}"{{!
|
|
}} data-event-event-count="{{eventcount}}"{{!
|
|
}} data-event-="{{repeatid}}"{{!
|
|
}} data-action-event="{{isactionevent}}"{{!
|
|
}} data-edit-url="{{editurl}}"{{!
|
|
}}>
|
|
<h4>{{#str}} when, core_calendar {{/str}}</h4>
|
|
{{#userdate}} {{timestart}}, {{#str}} strftimerecentfull {{/str}} {{/userdate}}
|
|
<br>
|
|
{{#description}}
|
|
<h4>{{#str}} description {{/str}}</h4>
|
|
{{{description}}}
|
|
{{/description}}
|
|
<h4>{{#str}} eventtype, core_calendar {{/str}}</h4>
|
|
{{eventtype}}
|
|
{{#iscourseevent}}
|
|
<div><a href="{{url}}">{{course.fullname}}</a></div>
|
|
{{/iscourseevent}}
|
|
{{#source}}
|
|
<div>{{{source}}}</div>
|
|
{{/source}}
|
|
{{#groupname}}
|
|
<div><a href="{{url}}">{{{course.fullname}}}</a></div>
|
|
<div>{{{groupname}}}</div>
|
|
{{/groupname}}
|
|
</div>
|