Commit graph

6 commits

Author SHA1 Message Date
Ana
325a5ae77a Avoid overlapping in the admin schedule
Not allow that an event is scheduled at the same time than other event in the admin schedule.
2016-08-02 00:46:54 +02:00
Ana
99f71497cc Introduce a "Save" button for the admin schedule
The changes were saved after you drop an event, and now it only saves the schedule when you're done with the changes and click the "Save" button.
2016-08-02 00:45:01 +02:00
Ana
47e316cddd Introduce an Admin::EventScheduleController
- move SchedulesController#update action
- split it into an #create/#update and #destroy action and use these actions in the JS code
2016-08-02 00:07:14 +02:00
Ana
af75334353 Do not use JS to initialize the schedule
- Only use JS for the drag&drop functionality and to the set/alter the time and rooms of the EventSchedule object.

- Introduce has_many :events, through: :event_schedules association to get unscheduled event easily
2016-08-02 00:06:23 +02:00
Ana
4abc60424d Several schedules in the backend && routes changed
- Introduce plural resources for Schedule in routes.rb
- Introduce #index and #create actions for ScheduleController
- Make it possible to set a schedule as selected_schedule
2016-08-02 00:04:30 +02:00
Ana
17bfb02d27 javascript for the admin schedule moved to a .js
Inline javascript for the admin schedule moved to a dedicated .js file.
2016-08-01 22:36:08 +02:00