Feature: Add/change Track for Event

This commit is contained in:
Henne Vogelsang 2016-03-05 02:54:09 +01:00
parent 18bb1bd237
commit feaf9d8078
5 changed files with 17 additions and 22 deletions

View file

@ -4,6 +4,11 @@
= f.input :subtitle, as: :string
- if @program.tracks.any?
= f.input :track_id, as: :select,
collection: @program.tracks.map {|track| ["#{track.name}", track.id] },
include_blank: true
= f.input :event_type_id, as: :select,
collection: @conference.program.event_types.map {|type| ["#{type.title} - #{show_time(type.length)}", type.id,
data: { min_words: type.minimum_abstract_length, max_words: type.maximum_abstract_length }]},