[feat]Fullcalendar integration done

This commit is contained in:
Jimmy 2021-04-26 17:33:31 +08:00 committed by CactusPuppy
parent 9d6ab55d13
commit 5296d18c27
No known key found for this signature in database
GPG key ID: 4B33B0A3E15E2C82
9 changed files with 116 additions and 18 deletions

View file

@ -14,8 +14,8 @@
var calendar = new FullCalendar.Calendar(calendarEl, {
timeZone: 'UTC',
initialView: 'resourceTimeGridDay',
resources: "<%= @rooms >",
events: "<%= @event_schedules >"
resources: #{@rooms.html_safe},
events: #{@event_schedules.html_safe}
});
calendar.render();