=semantic_form_for [:admin, @p_customer], :remote => true do |form|

  .content
    =form.inputs do
      = form.input :fav, :label => "Favoris ?" 
      = form.input :p_customer_cat_id, :label => "Catégorie client", :include_blank => false, :collection => PCustomerCat.order(:name).all, :as => :select
      = form.input :code, :label => "Code client :" 
     
     

      -if false
        %hr

        =form.semantic_fields_for :particular do |form| 
          =render :partial => "admin/particulars/form", :locals => {:form => form}
        
      Adresses :  
      
      

      .particulars_form
        =form.semantic_fields_for :particulars do |form|
          =render :partial => "admin/particulars/form", :locals => {:form => form}
      
      %p= link_to_add_fields "Ajouter une adresse", form, :particulars 
      
      %hr
      %hr
      
      Contacts du client :
      %hr
      
      .p_contacts_form
        =form.semantic_fields_for :p_contacts do |form|
          =render :partial => "admin/p_contacts/form", :locals => {:form => form}
    
      %p= link_to_add_fields "Ajouter une contact au client", form, :p_contacts
      
      %hr
      = form.input :mlm_token, :label => "Code parrain :" 
      
      
      
  .actions=form.submit "sauvegarder", :class => "btn btn-primary"
  