sadem_app/app/views/admin/m_odrs/_form.html.haml

147 lines
5.6 KiB
Plaintext

=semantic_form_for [:admin, @m_odr], :remote => false do |f|
.qi_row
.qi_pannel.qi_plain.padding
=f.inputs do
= f.input :p_customer, :label => "Client :"
= f.input :name, :label => "Nom de l'ODR :"
= f.input :slug, :label => "Permalien :"
= f.input :description, :label => "Description :" , :as => :text
= f.input :landing_text, :label => "Texte lancement :"
.row.qi_cancel_margins
.col-sm-4
= f.input :start_at, :label => "Date de début :" , :as => :date
.col-sm-4
= f.input :end_at, :label => "Date de fin :" , :as => :date
.col-sm-4
= f.input :public_end, :label => "Date de fin des envois :" , :as => :date
.row.qi_cancel_margins
.col-sm-3
= f.input :logo_image_file_id, :label => "Logo :" , :as => :qi_image_select
= f.input :logo_image_file_width, :label => "Largeur du logo (px):"
= f.input :logo_image_link, :label => "Largeur du logo (px):"
.col-sm-3
= f.input :banner_image_file_id, :label => "Bannière :" , :as => :qi_image_select
= f.input :banner_image_file_width, :label => "Largeur de la bannière (px):"
= f.input :banner_image_link, :label => "Lien du footer :"
.col-sm-3
= f.input :footer_image_file_id, :label => "Footer :" , :as => :qi_image_select
= f.input :footer_image_width, :label => "Largeur du footer (px):"
= f.input :footer_image_link, :label => "Lien du footer :"
.col-sm-3
= f.input :background_image_file_id, :label => "Fond :" , :as => :qi_image_select
= f.input :conditions, :label => "Conditions indiquées en footer :"
= f.input :thank_title, :label => "Titre remerciement"
= f.input :thank_text, :label => "Texte remerciement"
= f.input :buy_infos, :label => "Texte info supplémentaire achats"
= f.input :email_from, :label => "Adresse email d'envoi :"
.qi_row
.qi_pannel.qi_plain.padding
%h3 Données récupérées :
= f.input :address_process, :label => "Adresse postale ?"
= f.input :address_needed, :label => "Obligatoire ?"
= f.input :rib_process, :label => "RIB ?"
= f.input :rib_needed, :label => " Obligatoire ?"
= f.input :email_process, :label => "Email ?"
= f.input :email_needed, :label => "Obligatoire ?"
= f.input :tel_process, :label => "Tel ?"
= f.input :tel_needed, :label => "Obligatoire ?"
= f.input :buy_date_process, :label => "Date achat ?"
= f.input :buy_date_needed, :label => "Obligatoire ?"
= f.input :reduc_code_process, :label => "Code de réduction ?"
= f.input :reduc_code_needed, :label => "Obligatoire ?"
= f.input :reduc_process, :label => "Réduction saisie par le client ?"
= f.input :reduc_needed, :label => "Obligatoire ?"
= f.input :confirm_case_needed, :label => "Case de confirmation obligatoire ?"
= f.input :product_process, :label => "Produit ?"
= f.input :product_needed, :label => "Obligatoire ?"
.qi_row
.qi_pannel.qi_plain.padding
= f.input :placeholder, :label => "Afficher les libellés ?"
= f.input :name_label, :label => "Label nom :"
= f.input :firstname_label, :label => "Label prénom :"
= f.input :confirm_case_label, :label => "Label case de confirmation :"
= f.input :product_cat_label, :label => "Label catégorie produit :"
= f.input :product_label, :label => "Label produit :"
= f.input :qte_label, :label => "Label quantité :"
= f.input :place_label, :label => "Label lieu de vente :"
= f.input :reduc_label, :label => "Label case réduction :"
.qi_row
.qi_pannel.qi_plain.padding
=render :partial => "admin/shared/social_form", :locals => {:f => f}
.qi_row
.qi_pannel.qi_plain.padding
Infos pour les virements :
%hr
= f.input :iban, :label => "Iban :"
= f.input :bic, :label => "Bic :"
= f.input :bank_name, :label => "Nom du propriétaire du compte :"
= f.input :bank_subject, :label => "Libellé virement :"
.qi_row
.qi_pannel.qi_plain.padding
Bons d'achats :
= f.input :ba_image_file_id, :label => "Fond du bon d'achat :" , :as => :qi_image_select
= f.input :ba_generation, :label => "Générer un bon d'achat ?"
= f.input :ba_width, :label => "Largeur du bon d'achat (px) :"
= f.input :ba_height, :label => "Hauteur du bon d'achat (px) :"
=# f.input :ba_name_x, :label => "Position X du nom (px) :"
= f.input :ba_name_y, :label => "Position Y du nom (px) :"
=# f.input :ba_place_x, :label => "Position X du revendeur (px) :"
= f.input :ba_place_y, :label => "Position Y du revendeur (px) :"
= f.input :ba_number_place_y, :label => "Position Y du numéro (px) :"
= f.input :ba_show_remise, :label => "Afficher la remise ?"
= f.input :ba_remise_place_y, :label => "Position Y de la remise (px) :"
= f.input :ba_number_generator, :label => "Générer un numéro de bon d'achat unique à l'inscription"
= f.input :ba_interface, :label => "Générer une interface pour les revendeurs permettant de valider le bon d'achat"
.large_actions
.actions
=f.submit "sauvegarder", :class => "btn btn-primary"