From 71306f09ba7307ec7e4d162e29a8fe750611d352 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 71feac07..6186436a 100644 --- a/app/views/proposals/_form.html.haml +++ b/app/views/proposals/_form.html.haml @@ -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