mirror of
https://github.com/moodle/moodle.git
synced 2025-08-10 11:26:41 +02:00

When clicking on an event in the month view, a modal opens with information about it. That modal did previously only show the start time of the event. It now also shows the end (if the event has one).
107 lines
4.5 KiB
Text
107 lines
4.5 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",
|
|
"location": "13th floor, building 42",
|
|
"eventtype": "User",
|
|
"source": "Ical imported",
|
|
"groupname": "Group 1"
|
|
}
|
|
}}
|
|
<div{{!
|
|
}} class="summary-modal-container"{{!
|
|
}} data-region="summary-modal-container"{{!
|
|
}} data-event-id="{{id}}"{{!
|
|
}} data-event-title="{{name}}"{{!
|
|
}} data-event-count="{{eventcount}}"{{!
|
|
}} data-event-="{{repeatid}}"{{!
|
|
}} data-action-event="{{isactionevent}}"{{!
|
|
}} data-edit-url="{{editurl}}"{{!
|
|
}}>
|
|
<div class="container-fluid">
|
|
<div class="row">
|
|
<div class="col-xs-1">{{#pix}} i/calendareventtime, core, {{#str}} when, core_calendar {{/str}} {{/pix}}</div>
|
|
<div class="col-xs-11">{{{formattedtime}}}</div>
|
|
</div>
|
|
<div class="row m-t-1">
|
|
<div class="col-xs-1">{{#pix}} i/calendar, core, {{#str}} eventtype, core_calendar {{/str}} {{/pix}}</div>
|
|
<div class="col-xs-11">{{eventtype}}</div>
|
|
</div>
|
|
{{#description}}
|
|
<div class="row m-t-1">
|
|
<div class="col-xs-1">{{#pix}} i/calendareventdescription, core, {{#str}} description {{/str}} {{/pix}}</div>
|
|
<div class="description-content col-xs-11">{{{.}}}</div>
|
|
</div>
|
|
{{/description}}
|
|
{{#location}}
|
|
<div class="row m-t-1">
|
|
<div class="col-xs-1">{{#pix}} i/location, core, {{#str}} location {{/str}} {{/pix}}</div>
|
|
<div class="location-content col-xs-11">{{{.}}}</div>
|
|
</div>
|
|
{{/location}}
|
|
{{#isactionevent}}
|
|
<div class="row m-t-1">
|
|
<div class="col-xs-1">{{#pix}} i/courseevent, core, {{#str}} course {{/str}} {{/pix}}</div>
|
|
<div class="col-xs-11"><a href="{{course.viewurl}}">{{{course.fullname}}}</a></div>
|
|
</div>
|
|
{{/isactionevent}}
|
|
{{#iscategoryevent}}
|
|
<div class="row m-t-1">
|
|
<div class="col-xs-1">{{#pix}} i/categoryevent, core, {{#str}} category {{/str}} {{/pix}}</div>
|
|
<div class="col-xs-11">{{{category.nestedname}}}</div>
|
|
</div>
|
|
{{/iscategoryevent}}
|
|
{{#iscourseevent}}
|
|
<div class="row m-t-1">
|
|
<div class="col-xs-1">{{#pix}} i/courseevent, core, {{#str}} course {{/str}} {{/pix}}</div>
|
|
<div class="col-xs-11"><a href="{{url}}">{{{course.fullname}}}</a></div>
|
|
</div>
|
|
{{/iscourseevent}}
|
|
{{#groupname}}
|
|
<div class="row m-t-1">
|
|
<div class="col-xs-1">{{#pix}} i/courseevent, core, {{#str}} course {{/str}} {{/pix}}</div>
|
|
<div class="col-xs-11"><a href="{{url}}">{{{course.fullname}}}</a></div>
|
|
</div>
|
|
<div class="row m-t-1">
|
|
<div class="col-xs-1">{{#pix}} i/groupevent, core, {{#str}} group {{/str}} {{/pix}}</div>
|
|
<div class="col-xs-11">{{{groupname}}}</div>
|
|
</div>
|
|
{{/groupname}}
|
|
{{#subscription}}
|
|
{{#displayeventsource}}
|
|
<div class="row m-t-1">
|
|
<div class="col-xs-1">{{#pix}} i/rss, core, {{#str}} eventsource, core_calendar {{/str}} {{/pix}}</div>
|
|
<div class="col-xs-11">
|
|
{{#subscriptionurl}}
|
|
<p><a href="{{subscriptionurl}}">{{#str}}subscriptionsource, core_calendar, {{{subscriptionname}}}{{/str}}</a></p>
|
|
{{/subscriptionurl}}
|
|
{{^subscriptionurl}}
|
|
<p>{{#str}}subscriptionsource, core_calendar, {{{subscriptionname}}}{{/str}}</p>
|
|
{{/subscriptionurl}}
|
|
</div>
|
|
</div>
|
|
{{/displayeventsource}}
|
|
{{/subscription}}
|
|
</div>
|
|
</div>
|