Skip to content

Commit

Permalink
fix include blank for dropdown selects
Browse files Browse the repository at this point in the history
  • Loading branch information
njaeggi committed Oct 17, 2023
1 parent 23b8f5c commit c2f863e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion app/views/people/_fields_youth.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -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' })

0 comments on commit c2f863e

Please sign in to comment.