MDL-59388 core_calendar: display calendar footer options
[moodle.git] / calendar / templates / month_detailed.mustache
CommitLineData
64ff737a
AN
1<span class="calendarwrapper" data-courseid="{{courseid}}">
2 {{> core_calendar/month_header }}
3 {{> core_calendar/month_navigation }}
4 <table class="calendarmonth calendartable table card-deck m-b-0">
5 <thead>
6 <tr>
7 {{# daynames }}
8 <th class="header text-xs-center">
9 {{shortname}}
10 </th>
11 {{/ daynames }}
12 </tr>
13 </thead>
14 <tbody>
15 {{#weeks}}
16 <tr>
17 {{#prepadding}}
18 <td class="dayblank">&nbsp;</td>
19 {{/prepadding}}
20 {{#days}}
21 <td class="day text-sm-center text-md-left{{!
22 }}{{#istoday}} today{{/istoday}}{{!
23 }}{{#isweekend}} weekend{{/isweekend}}{{!
24 }}{{#durationevents.0}} duration{{/durationevents.0}}{{!
25 }}{{#durationevents}} duration_{{.}}{{/durationevents}}{{!
26 }}">
27 <div class="hidden-sm-down text-xs-center">
28 {{#events.0}}
29 <a href="{{viewdaylink}}" class="day" title="{{viewdaylinktitle}}">{{mday}}</a>
30 {{/events.0}}
31 {{^events.0}}
32 {{mday}}
33 {{/events.0}}
34 {{#events.0}}
35 <ul>
36 {{#events}}
37 {{#underway}}
38 <li class="events-underway">[{{name}}]</li>
39 {{/underway}}
40 {{^underway}}
41 <li class="calendar_event_{{eventtype}}">
42 <a data-action="view-event" data-event-id="{{id}}" href="{{url}}">{{name}}</a>
43 </li>
44 {{/underway}}
45 {{/events}}
46 </ul>
47 {{/events.0}}
48 </div>
49 <div class="hidden-md-up">
50 {{#events.0}}
51 <a href="{{viewdaylink}}" class="day" title="{{viewdaylinktitle}}">{{mday}}</a>
52 {{/events.0}}
53 {{^events.0}}
54 {{mday}}
55 {{/events.0}}
56 </div>
57 </td>
58 {{/days}}
59 {{#postpadding}}
60 <td class="dayblank">&nbsp;</td>
61 {{/postpadding}}
62 </tr>
63 {{/weeks}}
64 </tbody>
65 </table>
66</span>