From d46105ea90e3ab646aa4a00f3cba7c0a752fca0e Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Bellet Date: Thu, 13 Oct 2022 14:31:00 +0200 Subject: [PATCH] Correct some input styling --- .../enterprises/form/_business_address.html.haml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/views/admin/enterprises/form/_business_address.html.haml b/app/views/admin/enterprises/form/_business_address.html.haml index 750b2aec03..793b71307f 100644 --- a/app/views/admin/enterprises/form/_business_address.html.haml +++ b/app/views/admin/enterprises/form/_business_address.html.haml @@ -9,6 +9,7 @@ .three.columns.alpha = bf.label :address1, t('.address1') %i.text-big.icon-question-sign{ "data-controller": "help-modal-link", "data-action": "click->help-modal-link#open", "data-help-modal-link-target-value": "business_address_info_modal" } + .eight.columns.omega = bf.text_field :address1, { placeholder: t(".address1_placeholder") } .row .alpha.three.columns @@ -24,16 +25,15 @@ = bf.text_field :city, { placeholder: t(:city_placeholder) } .four.columns.omega = bf.text_field :zipcode, { placeholder: t(:postcode_placeholder) } -.row +.row{"data-controller": "dependent-select", "data-dependent-select-options-value": countries_with_states } .three.columns.alpha = bf.label :country_id, t(:country) \/ = bf.label :state_id, t(:state) - %div{"data-controller": "dependent-select", "data-dependent-select-options-value": countries_with_states } - .four.columns - = bf.select :country_id, options_for_select(available_countries.map { |c| [c.name, c.id] }, @enterprise.business_address.country_id), {}, { "data-controller": "tom-select", "data-dependent-select-target": "source", "data-action": "dependent-select#handleSelectChange", class: "primary" } - .four.columns.omega - = bf.select :state_id, @enterprise.address.country.states.map { |s| [s.name, s.id] }, {}, { "data-controller": "tom-select", "data-dependent-select-target": "select", class: "primary" } + .four.columns + = bf.select :country_id, options_for_select(available_countries.map { |c| [c.name, c.id] }, @enterprise.business_address.country_id), {}, { "data-controller": "tom-select", "data-dependent-select-target": "source", "data-action": "dependent-select#handleSelectChange", class: "primary" } + .four.columns.omega + = bf.select :state_id, @enterprise.address.country.states.map { |s| [s.name, s.id] }, {}, { "data-controller": "tom-select", "data-dependent-select-target": "select", class: "primary" } .row .three.columns.alpha