=semantic_form_for [:admin, @p_product], :remote => false do |f|

  .qi_row
    .qi_pannel.qi_plain.padding
      =f.inputs do
        .row.qi_cancel_margins
           
          .col-sm-2
            = f.input :p_product_cat_id, :label => "Catégorie produit :", :collection => PProductCat.all, :as => :select, :include_blank => false
            
          
          .col-sm-2
            %br
            = f.input :enabled, :label => "Produit actif ?"
        
          .col-sm-2
     
            =f.input :s_brand_id, :label => "Marque :", :collection => SBrand.all, :as => :select, :include_blank => true
          
            =# f.input :stocked, :label => "Suivi de stock ?"
            
        
      
  
      
        -if false
          %table{:style => "width:100%"}
            %tr
              %td{:style => "width:50%;vertical-align:top;"}= f.input :code, :label => "Référence :"
              =#%td{:style => "width:50%;vertical-align:top;"}= f.input :sub_code, :label => "Référence fournisseur :"
          
        = f.input :code, :label => "Code :" 
        = f.input :name, :label => "Désignation :" 
        =# f.input :ct_price_ht, :label => "Prix HT :" 
        
        
      
    
    


  %h3.qi_form_header
    Références
  
  .p_product_refs_form
    =f.semantic_fields_for :p_product_refs do |form|
      =render :partial => "admin/p_product_refs/form", :locals => {:form => form}

  %p{:style => "padding:0 20px;"}= link_to_add_fields "Ajouter une référence", f, :p_product_refs, {:class => "btn btn-primary"}
    

  .qi_row
    .qi_pannel.qi_plain.padding
      .row.qi_cancel_margins
        .col-sm-4
          =f.input :p_product_sub_cats, :label => "Sous catégories :", :collection => PProductSubCat.where(["parent_id is NULL"]).all, :as => :check_boxes, :nested_set=>true, :member_label => :member_label
  
   
  .large_actions
    .actions
      =f.submit "sauvegarder", :class => "btn btn-primary btn-ap-add"
      
      
:scss

  .check_boxes{
    list-style-type: none;
    
  }
  .choices{
    .choices-group{
      padding-left:0;
    }
    ol li{
      list-style-type: none;
      
      ul{
        padding:0;
      }
      
    }
    
    label{
      font-weight:normal;
    }
  
    .label{
      display: inherit !important;
      padding: inherit !important;
      font-size: inherit !important;
      font-weight: bold !important;
      line-height: inherit !important;
      color: inherit !important;
      text-align: inherit !important;
      white-space: inherit !important;
      vertical-align: inherit !important;
      border-radius: inherit !important;
      border:0;
      margin-bottom:0;
      
      label{
        font-weight: bold !important;
      }
      
      
    }
  
  
  }
  
      
      
      
      
  