formulaire commandes

This commit is contained in:
Nicolas Bally 2015-02-12 22:48:54 +01:00
parent b7d2ea2431
commit af5f29f05f
2 changed files with 18 additions and 4 deletions

View File

@ -1,8 +1,15 @@
= semantic_form_for [:admin,@order], :remote => true do |form| = semantic_form_for [:admin,@order], :remote => true do |form|
.content .content
= form.inputs do = form.inputs do
= form.input :name, :label => "Prénom / nom :" =f.input :email, :label => "Email :"
= form.input :email, :label => "Email :" =f.input :name, :label => "Nom :"
=f.input :firstname, :label => "Prénom :"
=f.input :street1, :label => "Adresse :"
=f.input :street2, :label => "Adresse (suite) :"
=f.input :postal_code, :label => "Code Postal :"
=f.input :cityname, :label => "Ville :"
=f.input :country, :label => "Pays :", :as => :string
= form.input :payment_type, :label => "Type de paiement : ", :collection => {"Paypal" => "1", "Offert" => "2", "Chèque" => "3"}, :include_blank => false = form.input :payment_type, :label => "Type de paiement : ", :collection => {"Paypal" => "1", "Offert" => "2", "Chèque" => "3"}, :include_blank => false
= form.input :paid_at, :label => "Date de paiement :", :as => :qi_date_picker = form.input :paid_at, :label => "Date de paiement :", :as => :qi_date_picker
=form.input :paid, :label => "Payé ?" =form.input :paid, :label => "Payé ?"

View File

@ -1,8 +1,15 @@
= semantic_form_for [:admin,@order], :remote => true do |form| = semantic_form_for [:admin,@order], :remote => true do |form|
.content .content
= form.inputs do = form.inputs do
= form.input :name, :label => "Prénom / nom :" =f.input :email, :label => "Email :"
= form.input :email, :label => "Email :" =f.input :name, :label => "Nom :"
=f.input :firstname, :label => "Prénom :"
=f.input :street1, :label => "Adresse :"
=f.input :street2, :label => "Adresse (suite) :"
=f.input :postal_code, :label => "Code Postal :"
=f.input :cityname, :label => "Ville :"
=f.input :country, :label => "Pays :", :as => :string
= form.input :payment_type, :label => "Type de paiement : ", :collection => {"Paypal" => "1", "Offert" => "2", "Chèque" => "3"}, :include_blank => false = form.input :payment_type, :label => "Type de paiement : ", :collection => {"Paypal" => "1", "Offert" => "2", "Chèque" => "3"}, :include_blank => false
= form.input :paid_at, :label => "Date de paiement :", :as => :qi_date_picker = form.input :paid_at, :label => "Date de paiement :", :as => :qi_date_picker
=form.input :paid, :label => "Payé ?" =form.input :paid, :label => "Payé ?"