MDL-59393 calendar: add update_event_start_day external function
[moodle.git] / calendar / templates / month_detailed.mustache
CommitLineData
a4af4c96
SL
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 calendar/month_detailed
19
20 Calendar month view.
21
22 The purpose of this template is to render the month view.
23
24 Classes required for JS:
25 * none
26
27 Data attributes required for JS:
28 * none
29
30 Example context (json):
31 {
32 }
33}}
516e7444 34<span class="calendarwrapper" data-courseid="{{courseid}}" data-current-time="{{time}}">
64ff737a
AN
35 {{> core_calendar/month_header }}
36 {{> core_calendar/month_navigation }}
836aa3f6 37 <table class="calendarmonth calendartable card-deck m-b-0">
64ff737a
AN
38 <thead>
39 <tr>
40 {{# daynames }}
41 <th class="header text-xs-center">
42 {{shortname}}
43 </th>
44 {{/ daynames }}
45 </tr>
46 </thead>
47 <tbody>
48 {{#weeks}}
49 <tr>
50 {{#prepadding}}
51 <td class="dayblank">&nbsp;</td>
52 {{/prepadding}}
53 {{#days}}
54 <td class="day text-sm-center text-md-left{{!
55 }}{{#istoday}} today{{/istoday}}{{!
56 }}{{#isweekend}} weekend{{/isweekend}}{{!
57 }}{{#durationevents.0}} duration{{/durationevents.0}}{{!
58 }}{{#durationevents}} duration_{{.}}{{/durationevents}}{{!
59 }}">
60 <div class="hidden-sm-down text-xs-center">
61 {{#events.0}}
62 <a href="{{viewdaylink}}" class="day" title="{{viewdaylinktitle}}">{{mday}}</a>
63 {{/events.0}}
64 {{^events.0}}
65 {{mday}}
66 {{/events.0}}
67 {{#events.0}}
68 <ul>
69 {{#events}}
70 {{#underway}}
71 <li class="events-underway">[{{name}}]</li>
72 {{/underway}}
73 {{^underway}}
74 <li class="calendar_event_{{eventtype}}">
75 <a data-action="view-event" data-event-id="{{id}}" href="{{url}}">{{name}}</a>
76 </li>
77 {{/underway}}
78 {{/events}}
79 </ul>
80 {{/events.0}}
81 </div>
836aa3f6 82 <div class="hidden-md-up hidden-desktop">
64ff737a
AN
83 {{#events.0}}
84 <a href="{{viewdaylink}}" class="day" title="{{viewdaylinktitle}}">{{mday}}</a>
85 {{/events.0}}
86 {{^events.0}}
87 {{mday}}
88 {{/events.0}}
89 </div>
90 </td>
91 {{/days}}
92 {{#postpadding}}
93 <td class="dayblank">&nbsp;</td>
94 {{/postpadding}}
95 </tr>
96 {{/weeks}}
97 </tbody>
98 </table>
99</span>