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 395eb1c commit cf42bbf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
- if entry.show_attr?(:title)
= f.labeled_input_field :title
- if entry.show_attr?(:salutation)
= f.labeled_collection_select :salutation, Salutation.available, :first, :last, { include_blank: true }, class: 'form-select form-select-sm'
= f.labeled_collection_select :salutation, Salutation.available, :first, :last, { include_blank: "" }, class: 'form-select form-select-sm'
- if entry.show_attr?(:correspondence_language)
= f.labeled_collection_select(:correspondence_language,
Settings.application.languages.to_hash,
Expand Down
2 changes: 1 addition & 1 deletion app/views/events/_location_fields.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
camp_possible_canton_labels,
:first,
:last,
{ include_blank: true },
{ include_blank: "" },
class: 'chosen-select form-select form-select-sm',
data: { placeholder: ' ' })
.canton-specific-help-texts
Expand Down
2 changes: 1 addition & 1 deletion app/views/people/_fields_pbs.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
= field_set_tag do
= f.labeled_input_field :title
= f.labeled_collection_select :salutation, Salutation.available, :first, :last, { include_blank: true }, class: 'form-select form-select-sm'
= f.labeled_collection_select :salutation, Salutation.available, :first, :last, { include_blank: "" }, class: 'form-select form-select-sm'
= f.labeled_collection_select(:correspondence_language,
Settings.application.languages.to_hash,
:first,
Expand Down

0 comments on commit cf42bbf

Please sign in to comment.