开发者

Ruby on Rails - Calendar Display

开发者 https://www.devze.com 2022-12-30 01:44 出处:网络
We want to create a calendar view in a room scheduling application.The outcome we want is to have hours open (variable depending on day) across the top of the grid and the names of the rooms down the

We want to create a calendar view in a room scheduling application. The outcome we want is to have hours open (variable depending on day) across the top of the grid and the names of the rooms down the left side of the grid. The body would be populated with bookings for that day. The visual we're seeking is 开发者_StackOverflowsimilar to the "Weekly Builder" plugin for Rails (http://dmix.ca/2009/06/weeklybuilder-a-weekly-calendar-plugin-for-rails/).

We've tried using CSS to create variably-sized images, but this isn't working out. Are there any plugins available or other ways anyone can think of to accomplish this kind of visual?

Thanks


Full calendar is what you are looking for. It has an "Scheduler" utility which can be used just for what you are mentioning. I've used it myself and it's well documented and easy to use: https://fullcalendar.io/scheduler/

Ruby on Rails - Calendar Display

You can create events which occupy multiple rooms, specify working hours, create and resize events by dragging, etc.

Just download the utility: https://fullcalendar.io/scheduler/download/. Remember to place the "node_modules" directory under vendor/assets

0

精彩评论

暂无评论...
验证码 换一张
取 消