mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-04-04 07:09:14 +00:00
Move customer_details/_form defaces to the view
This commit is contained in:
@@ -1,2 +0,0 @@
|
||||
/ set_attributes "div[data-hook='customer_fields'] div.alpha"
|
||||
/ attributes({class: "fullwidth"})
|
||||
@@ -1 +0,0 @@
|
||||
remove "div[data-hook='customer_fields'] div.omega"
|
||||
@@ -2,27 +2,10 @@
|
||||
%fieldset.index.no-border-bottom{"data-hook" => "customer_guest"}
|
||||
%legend{:align => "center"}= Spree.t(:account)
|
||||
.row{"data-hook" => "customer_fields"}
|
||||
.alpha.eight.columns
|
||||
.alpha.eight.columns.fullwidth
|
||||
.field
|
||||
= f.label :email, Spree.t(:email) + ':'
|
||||
= f.email_field :email, :class => 'fullwidth'
|
||||
.omega.four.columns
|
||||
.field
|
||||
= label_tag nil, Spree.t(:guest_checkout)
|
||||
\:
|
||||
%ul
|
||||
- if @order.completed?
|
||||
%li
|
||||
= @order.user.nil? ? Spree.t(:say_yes) : Spree.t(:say_no)
|
||||
- else
|
||||
- guest = @order.user.nil? || @order.user.anonymous?
|
||||
%li
|
||||
= radio_button_tag :guest_checkout, true, guest
|
||||
= Spree.t(:say_yes)
|
||||
%li
|
||||
= radio_button_tag :guest_checkout, false, !guest, :disabled => @order.cart?
|
||||
= Spree.t(:say_no)
|
||||
= hidden_field_tag :user_id, @order.user_id
|
||||
|
||||
.alpha.six.columns{"data-hook" => "bill_address_wrapper"}
|
||||
%fieldset.no-border-bottom
|
||||
|
||||
Reference in New Issue
Block a user