[feat]Fullcalendar integration done

This commit is contained in:
Jimmy 2021-04-26 17:33:31 +08:00
parent 49cf115844
commit df729b7dde
No known key found for this signature in database
GPG key ID: FAE75C760A4A5CC6
9 changed files with 116 additions and 18 deletions

View file

@ -19,11 +19,11 @@ class FullCalendarFormatter
def event_schedule_to_resource(event_schedule)
{
id: event_schedule.event.guid,
title: event_schedule.event.title,
start: event_schedule.start_time,
end: event_schedule.end_time,
source: event_schedule.room.guid
id: event_schedule.event.guid,
title: event_schedule.event.title,
start: event_schedule.start_time,
end: event_schedule.end_time,
resourceId: event_schedule.room.guid
}
end
end