From c2f863e0a35db4493dc7f0955e260d7863a16e72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niklas=20J=C3=A4ggi?= Date: Tue, 17 Oct 2023 10:19:15 +0200 Subject: [PATCH] fix include blank for dropdown selects --- .../event/participation_contact_datas/_fields_youth.html.haml | 2 +- app/views/people/_fields_youth.html.haml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/event/participation_contact_datas/_fields_youth.html.haml b/app/views/event/participation_contact_datas/_fields_youth.html.haml index 3f5ba59..1d9ed89 100644 --- a/app/views/event/participation_contact_datas/_fields_youth.html.haml +++ b/app/views/event/participation_contact_datas/_fields_youth.html.haml @@ -11,7 +11,7 @@ = f.labeled_collection_select(:nationality_j_s, Person::NATIONALITIES_J_S, :to_s, Proc.new { |n| t("activerecord.attributes.person.nationalities_j_s.#{n}") }, - { include_blank: true }, + { include_blank: "" }, { class: 'form-select form-select-sm' }) - if entry.person != current_user diff --git a/app/views/people/_fields_youth.html.haml b/app/views/people/_fields_youth.html.haml index c0a823f..5bdaafb 100644 --- a/app/views/people/_fields_youth.html.haml +++ b/app/views/people/_fields_youth.html.haml @@ -24,5 +24,5 @@ = f.labeled_collection_select(:nationality_j_s, Person::NATIONALITIES_J_S, :to_s, Proc.new { |n| t("activerecord.attributes.person.nationalities_j_s.#{n}") }, - { include_blank: true }, + { include_blank: "" }, { class: 'form-select form-select-sm' })