Don't automatically select difficulty level

Resolves accidental selection of first difficulty level when intending
to edit only other fields.
This commit is contained in:
Andrew Kvalheim 2023-03-10 16:44:10 -08:00 committed by Henne Vogelsang
parent 6e276b2787
commit 71306f09ba
No known key found for this signature in database
GPG key ID: 97DDB66BDAF8D4D6

View file

@ -38,7 +38,7 @@
- if display_details
- if @conference.program.difficulty_levels.any?
= f.label :difficulty_level
= f.select :difficulty_level_id, @conference.program.difficulty_levels.map{|level| [level.title, level.id ] }, {include_blank: false}, { class: 'select-help-toggle form-control' }
= f.select :difficulty_level_id, @conference.program.difficulty_levels.map{|level| [level.title, level.id ] }, {include_blank: '(Please select)'}, { class: 'select-help-toggle form-control' }
= render 'shared/select_help_text', f: f, for: :difficulty_level_id, options: @conference.program.difficulty_levels do |difficulty_level|
= difficulty_level.description
.form-group