EventSchedule validations

event, schedule, room and start_time are mandatory in EventSchedule.
This commit is contained in:
Ana 2016-07-26 16:20:31 +02:00
parent 354e15a76d
commit 0b26ed5c35
10 changed files with 26 additions and 15 deletions

View file

@ -68,7 +68,7 @@
%dl#proposal-info
.col-md-12
%dt Date:
%dd= @event_schedule.start_time.strftime("%Y %B %e %H:%M") if @event_schedule.try(:start_time)
%dd= @event_schedule.start_time.strftime("%Y %B %e %H:%M") if @event_schedule
.col-md-12
%dt Duration:
%dd= show_time(@event.event_type.length)