Include help data for event types in new proposal view

(Why doesn't the new view use the proposal form partial?)
This commit is contained in:
CactusPuppy 2021-03-07 23:02:49 -08:00
parent cdbeb6ec4c
commit 2e61bc2948
No known key found for this signature in database
GPG key ID: 4B33B0A3E15E2C82

View file

@ -33,7 +33,7 @@
= f.input :title, as: :string, required: true, input_html: { required: true }
= f.input :event_type_id, as: :select,
collection: @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 }]},
data: { min_words: type.minimum_abstract_length, max_words: type.maximum_abstract_length, help: type.description }]},
include_blank: false, label: 'Type', input_html: { class: 'select-help-toggle' }
- @program.event_types.each do |event_type|