=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" .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 :confirm_case_needed, :label => "Case de confirmation 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 :" .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 Fichiers demandés : %hr .m_odr_file_types_form =f.semantic_fields_for :m_odr_file_types do |form| =render :partial => "admin/m_odr_file_types/form", :locals => {:form => form} %p= link_to_add_fields ic(:plus)+" Ajouter un fichier demandé", f, :m_odr_file_types .qi_row .qi_pannel.qi_plain.padding Marques concernées : %hr .m_odr_brands_form =f.semantic_fields_for :m_odr_brands do |form| =render :partial => "admin/m_odr_brands/form", :locals => {:form => form} %p= link_to_add_fields ic(:plus)+" Ajouter ue marque", f, :m_odr_brands .qi_row .qi_pannel.qi_plain.padding Catégories produits : %hr .m_odr_product_cats_form =f.semantic_fields_for :m_odr_product_cats do |form| =render :partial => "admin/m_odr_product_cats/form", :locals => {:form => form} %p= link_to_add_fields ic(:plus)+" Ajouter une catégorie", f, :m_odr_product_cats .qi_row .qi_pannel.qi_plain.padding Produits concernés : %hr .m_odr_products_form =f.semantic_fields_for :m_odr_products do |form| =render :partial => "admin/m_odr_products/form", :locals => {:form => form} %p= link_to_add_fields ic(:plus)+" Ajouter un produit", f, :m_odr_products .qi_row .qi_pannel.qi_plain.padding Points de ventes : %hr .m_odr_places_form =f.semantic_fields_for :m_odr_places do |form| =render :partial => "admin/m_odr_places/form", :locals => {:form => form} %p= link_to_add_fields ic(:plus)+" Ajouter un point de vente", f, :m_odr_places .qi_row .qi_pannel.qi_plain.padding Trackers : %hr .m_odr_trackers_form =f.semantic_fields_for :m_odr_trackers do |form| =render :partial => "admin/m_odr_trackers/form", :locals => {:form => form} %p= link_to_add_fields ic(:plus)+" Ajouter un tracker", f, :m_odr_trackers .qi_row .qi_pannel.qi_plain.padding = f.input :email_from, :label => "Email d'envoi :" Mails types : %hr .mail_types_form =f.semantic_fields_for :mail_types do |form| =render :partial => "admin/mail_types/form", :locals => {:form => form} %p= link_to_add_fields ic(:plus)+" Ajouter un mail type", f, :mail_types .large_actions .actions =f.submit "sauvegarder", :class => "btn btn-primary"