From 3eeb0e2b7aa5e31c77c4888506abd30e4b64d4d4 Mon Sep 17 00:00:00 2001 From: Andrew Kvalheim Date: Fri, 10 Mar 2023 16:44:10 -0800 Subject: [PATCH] Don't automatically select difficulty level Resolves accidental selection of first difficulty level when intending to edit only other fields. --- app/views/proposals/_form.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/proposals/_form.html.haml b/app/views/proposals/_form.html.haml index 964bc87327..1a9717286e 100644 --- a/app/views/proposals/_form.html.haml +++ b/app/views/proposals/_form.html.haml @@ -33,7 +33,7 @@ - if action_is_edit - 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' } - @conference.program.difficulty_levels.each do |difficulty_level| %span{ class: 'help-block select-help-text collapse event_difficulty_level_id', id: "#{difficulty_level.id}-help" } = difficulty_level.description