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
This commit is contained in:
Ana 2016-08-01 00:52:52 +02:00
parent a394293500
commit 5001848af7
10 changed files with 108 additions and 81 deletions

View file

@ -17,4 +17,5 @@
= time
- event_schedules = room_date_event_schedules.select{ |e| (e.start_time.hour.to_s + e.start_time.strftime(':%M')).eql? time }
- if event_schedules.any?
= render partial: 'event', locals: { event: event_schedules.first.event }
- event_schedule = event_schedules.first
= render partial: 'event', locals: { event: event_schedule.event, event_schedule_id: event_schedule.id}