60 lines
2.7 KiB
Plaintext
60 lines
2.7 KiB
Plaintext
.p_product_page
|
|
.qi_header
|
|
%h1
|
|
=link_to ic(:user)+" Mon compte", public_my_account_path
|
|
%span
|
|
=link_to "Mon panier", cart_public_p_orders_path
|
|
%span
|
|
Coordonnées
|
|
|
|
|
|
.qi_row
|
|
.qi_pannel.qi_plain.padding
|
|
|
|
=link_to ic(:address_book)+" Gérer mes adresses", public_particulars_path
|
|
|
|
|
|
=semantic_form_for [:public, @p_customer_sheet],:url => particulars_save_public_p_orders_path(), :html => { :method => :post, :onchange =>""}, :remote => false do |form|
|
|
|
|
|
|
.addresses.row
|
|
|
|
.columns.span_6
|
|
%h3 Adresse de facturation
|
|
|
|
-if @p_customer_sheet.p_customer
|
|
=form.inputs do
|
|
= form.input :particular_bill_id, :collection => @p_customer_sheet.p_customer.particulars.all, :as => :select, :member_label => :address_line, :include_blank => false, :label => "Adresse de facturation"
|
|
-else
|
|
=form.inputs do
|
|
= form.input :particular_bill_id, :collection => [], :as => :select, :include_blank => false, :label => "Adresse de facturation"
|
|
-if @p_customer_sheet.particular_bill and @p_customer_sheet.particular_bill.errors.size > 0
|
|
.alert.alert-danger
|
|
Cette adresse n'est pas valide, veuillez la renseigner ou
|
|
la compléter
|
|
=link_to "la compléter", edit_public_particular_path(:id => @p_customer_sheet.particular_bill_id, :order => true)
|
|
ou
|
|
=link_to "en créer une nouvelle.", new_public_particular_path(:order => true)
|
|
.columns.span_6
|
|
%h3 Adresse de livraison
|
|
|
|
-if @p_customer_sheet.p_customer
|
|
=form.inputs do
|
|
= form.input :particular_send_id, :collection => @p_customer_sheet.p_customer.particulars.all, :as => :select, :member_label => :address_line, :include_blank => false, :label => "Adresse de livraison"
|
|
-else
|
|
=form.inputs do
|
|
= form.input :particular_send_id, :collection => [], :as => :select, :include_blank => false, :label => "Adresse de facturation"
|
|
|
|
-if @p_customer_sheet.particular_send and @p_customer_sheet.particular_send.errors.size > 0
|
|
.alert.alert-danger
|
|
Cette adresse n'est pas valide, veuillez la renseigner ou
|
|
la compléter
|
|
=link_to "la compléter", edit_public_particular_path(:id => @p_customer_sheet.particular_bill_id, :order => true)
|
|
ou
|
|
=link_to "en créer une nouvelle.", new_public_particular_path(:order => true)
|
|
|
|
.clear
|
|
|
|
|
|
=form.submit "Suivant", :class => "btn btn-primary"
|
|
|