diff --git a/app/views/shared/_location_fields.html.erb b/app/views/shared/_location_fields.html.erb index b01a2b4e9..cbcc4140e 100644 --- a/app/views/shared/_location_fields.html.erb +++ b/app/views/shared/_location_fields.html.erb @@ -1,4 +1,5 @@ +
<%= form.select :country, COUNTRIES_STATES.keys.index_with { |abbr| COUNTRIES_STATES.dig(abbr, :name) }.invert, { prompt: "Please select" }, @@ -9,7 +10,10 @@ required: true, class: 'form-control' } %> +
+ +
<%= form.select :province_state, form.object.country.present? ? COUNTRIES_STATES.dig(form.object.country.to_sym, :states)&.map { |abbr, name| [:name, abbr] } : [], @@ -19,7 +23,11 @@ required: true, class: 'form-control' } %> +
+ +
<%= form.text_field :city_town, required: true, class: "form-control" %> +
\ No newline at end of file