Skip to content

Commit 3eeb0e2

Browse files
Don't automatically select difficulty level
Resolves accidental selection of first difficulty level when intending to edit only other fields.
1 parent 4de554e commit 3eeb0e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/views/proposals/_form.html.haml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
- if action_is_edit
3434
- if @conference.program.difficulty_levels.any?
3535
= f.label :difficulty_level
36-
= f.select :difficulty_level_id, @conference.program.difficulty_levels.map{|level| [level.title, level.id ] }, {include_blank: false}, { class: 'select-help-toggle form-control' }
36+
= 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' }
3737
- @conference.program.difficulty_levels.each do |difficulty_level|
3838
%span{ class: 'help-block select-help-text collapse event_difficulty_level_id', id: "#{difficulty_level.id}-help" }
3939
= difficulty_level.description

0 commit comments

Comments
 (0)