diff --git a/app/views/spree/addresses/edit.html.erb b/app/views/spree/addresses/edit.html.erb index 6163bf4f..c43c5af7 100644 --- a/app/views/spree/addresses/edit.html.erb +++ b/app/views/spree/addresses/edit.html.erb @@ -1,9 +1,9 @@ -
-
-
-

<%= t(:edit_shipping_address, scope: :address_book) %>

+
+
+
+

<%= t(:edit_shipping_address, scope: :address_book) %>

-
+
<%= render 'spree/shared/error_messages', target: @address %> <%= form_for @address, html: { id: 'checkout_form_address' } do |f| %>
diff --git a/app/views/spree/addresses/new.html.erb b/app/views/spree/addresses/new.html.erb index 658480e1..15ad1d30 100644 --- a/app/views/spree/addresses/new.html.erb +++ b/app/views/spree/addresses/new.html.erb @@ -1,9 +1,9 @@ -
-
-
-

<%= t(:new_shipping_address, scope: :address_book) %>

+
+
+
+

<%= t(:new_shipping_address, scope: :address_book) %>

-
+
<%= render 'spree/shared/error_messages', target: @address %> <%= form_for @address, html: { id: 'checkout_form_address' } do |f| %>
diff --git a/app/views/spree/checkout/_address.html.erb b/app/views/spree/checkout/_address.html.erb index 6a3a4336..4e9e1f0b 100644 --- a/app/views/spree/checkout/_address.html.erb +++ b/app/views/spree/checkout/_address.html.erb @@ -4,16 +4,16 @@ <% ['billing', 'shipping'].each do |address_type| next if address_type == 'billing' && Spree::AddressBook::Config[:disable_bill_address] address_name = "#{address_type[0...4]}_address" %> -
-
-
-

<%= Spree.t(address_type + "_address") %>

+
+
+
+

<%= Spree.t(address_type + "_address") %>

-
+
<% if address_type == 'shipping' && !Spree::AddressBook::Config[:disable_bill_address] %> -

+

<%= label_tag :order_use_billing, :id => 'use_billing' do %> - <%= check_box_tag 'order[use_billing]', '1', @order.shipping_eq_billing_address? %> + <%= check_box_tag 'order[use_billing]', '1', @order.shipping_eq_billing_address?, { class: 'form-check-input'} %> <%= Spree.t(:use_billing_address) %> <% end %>

@@ -22,11 +22,18 @@

<% @addresses.each_with_index do |address, idx| %> - - <%= Spree.t(:edit) %>
+ + + <%= Spree.t(:edit) %> <% end %> - +

+ +

<% end %> @@ -46,6 +53,8 @@ <% end %>
-
- <%= submit_tag Spree.t(:save_and_continue), :class => 'btn btn-lg btn-success' %> +
+
+ <%= submit_tag Spree.t(:save_and_continue), :class => 'btn btn-lg btn-success' %> +
diff --git a/app/views/spree/users/_addresses.html.erb b/app/views/spree/users/_addresses.html.erb index 6910c142..4acbac21 100644 --- a/app/views/spree/users/_addresses.html.erb +++ b/app/views/spree/users/_addresses.html.erb @@ -18,6 +18,6 @@ <%= t(:no_shipping_addresses_on_file, scope: :address_book) %>
<% end %> -