MDL-59392 calendar: Switch to templates in the cal block
authorAndrew Nicols <andrew@nicols.co.uk>
Fri, 1 Sep 2017 06:58:14 +0000 (14:58 +0800)
committerAndrew Nicols <andrew@nicols.co.uk>
Mon, 11 Sep 2017 04:45:46 +0000 (12:45 +0800)
commitc8b6e9ab3461f9beb97c3c01036fcc3d2458583f
tree1aa9d972fb50925800024e05a178d6bf6a0c91fd
parent41fa6a24be709c4fdbe5114a12231fa0451d23d6
MDL-59392 calendar: Switch to templates in the cal block

This commit adds a set of templates for the calendar month block, and
the events filter. The same data exporters used in the main calendar
view are utilised and the same logic.

Some additional data was added to the exporters, and in the long term
this will be used in the main monthly view so I did not feel it was
prudent to strip it out into a different view of the model.

AMOS BEGIN
 MOV [monthnext,access],[monthnext,calendar]
AMOS END
32 files changed:
blocks/calendar_month/block_calendar_month.php
blocks/calendar_month/tests/behat/block_calendar_month.feature
calendar/amd/build/calendar_filter.min.js [new file with mode: 0644]
calendar/amd/build/calendar_mini.min.js [new file with mode: 0644]
calendar/amd/build/events.min.js
calendar/amd/build/selectors.min.js [new file with mode: 0644]
calendar/amd/build/view_manager.min.js
calendar/amd/src/calendar_filter.js [new file with mode: 0644]
calendar/amd/src/calendar_mini.js [new file with mode: 0644]
calendar/amd/src/events.js
calendar/amd/src/selectors.js [new file with mode: 0644]
calendar/amd/src/view_manager.js
calendar/classes/external/calendar_event_exporter.php
calendar/classes/external/day_exporter.php
calendar/classes/external/month_exporter.php
calendar/classes/external/week_exporter.php
calendar/lib.php
calendar/renderer.php
calendar/templates/calendar_mini.mustache [new file with mode: 0644]
calendar/templates/event_filter.mustache [new file with mode: 0644]
calendar/templates/event_filter_key.mustache [new file with mode: 0644]
calendar/templates/minicalendar_day_link.mustache
calendar/templates/month_mini.mustache [new file with mode: 0644]
calendar/tests/behat/behat_calendar.php
lang/en/access.php
lang/en/calendar.php
lang/en/deprecated.txt
theme/boost/scss/moodle/calendar.scss
theme/boost/templates/core_calendar/minicalendar_day_link.mustache
theme/bootstrapbase/less/moodle/calendar.less
theme/bootstrapbase/style/moodle.css
theme/bootstrapbase/templates/core_calendar/minicalendar_day_link.mustache