MDL-65671 calendar: tidy up calendar header

This commit is contained in:
Simey Lameze 2019-06-06 14:08:43 +08:00
parent 859bc931d8
commit fed1cc738d
9 changed files with 25 additions and 9 deletions

View file

@ -31,7 +31,7 @@
{
}
}}
<div class="header d-flex flex-wrap mb-5">
<div class="header d-flex flex-wrap">
{{> core_calendar/view_selector}}
{{#filter_selector}}
{{{filter_selector}}}

View file

@ -33,6 +33,6 @@
}}
<div class="calendarwrapper" data-view="upcoming" data-context-id="{{defaulteventcontext}}" data-courseid="{{courseid}}">
{{> core/overlay_loading}}
<h2 class="current">{{#str}}upcomingevents, core_calendar{{/str}}</h2>
<h2 class="current text-center">{{#str}}upcomingevents, core_calendar{{/str}}</h2>
{{> core_calendar/event_list }}
</div>

View file

@ -26,9 +26,8 @@
"viewingupcoming": false
}
}}
<div class="dropdown mb-1" data-region="view-selector">
<div data-region="view-selector">
<button id="calendarviewdropdown" type="button" class="btn btn-outline-secondary dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
{{#pix}} a/view_icon_active {{/pix}}
<span class="d-sm-inline-block" data-active-item-text>
{{#viewingmonth}}{{#str}} month {{/str}}{{/viewingmonth}}
{{#viewingday}}{{#str}} day, core_calendar {{/str}}{{/viewingday}}