=semantic_form_for [:admin, @m_odr_rep], :remote => true do |f|

  .content
    =f.inputs do
      =# f.input :state, :label => "state :" 
      =# f.input :admin_id, :label => "admin_id :" 
      =# f.input :admin_valid, :label => "admin_valid :" 
      =# f.input :token, :label => "token :" 
      =# f.input :m_odr, :label => "m_odr :" 
      =# f.input :rgpd, :label => "rgpd :" 
      
      -if @m_odr_rep.m_odr.buy_date_process
        =f.input :buy_at, :label => "Date d'achat :", :as => :date  

      =f.input :m_odr_product_id, :label => "Pneu :", :as => :select, :collection => f.object.m_odr.m_odr_products.order("m_odr_brand_id ASC, m_odr_products.name"), :member_label => :member_label, :include_blank => true
  

      =f.input :qte, :label => "Nombre de pneus :", :as => :select, :collection => [1,2], :include_blank => true


      =f.input :m_odr_place, :label => "Point de vente :", :as => :select, :collection => f.object.m_odr.m_odr_places.order(:name), :include_blank => true
    
    
      
  .actions=f.submit "sauvegarder", :class => "btn btn-primary"
  