Fullcalendar integration in progress

This commit is contained in:
Jimmy 2021-04-26 11:07:20 +08:00 committed by CactusPuppy
parent 1bc6b092de
commit 9d6ab55d13
No known key found for this signature in database
GPG key ID: 4B33B0A3E15E2C82
2 changed files with 25 additions and 4 deletions

View file

@ -3,4 +3,20 @@
%h1.text-center
Vertical Schedule for
= @conference.title
= @conference.title
#calendar
:javascript
document.addEventListener('DOMContentLoaded', function() {
var calendarEl = document.getElementById('calendar');
var calendar = new FullCalendar.Calendar(calendarEl, {
timeZone: 'UTC',
initialView: 'resourceTimeGridDay',
resources: "<%= @rooms >",
events: "<%= @event_schedules >"
});
calendar.render();
});