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

  .content
    =f.inputs do
      = f.input :p_commercial_cat_id, :label => "Catégorie du commercial :", :include_blank => false, :collection => PCommercialCat.order(:name).all, :as => :select, :member_label => :name
      
      = f.input :enabled, :label => "Actif ?" 
      
      = f.input :code, :label => "Code :" 
      = f.input :organisation, :label => "Organisation :" 
      = f.input :name, :label => "Nom :" 
      = f.input :firstname, :label => "Prénom :" 
      
      = f.input :address_1, :label => "Adresse 1 :"
      = f.input :address_2, :label => "Adresse 2 :"
      = f.input :address_3, :label => "Adresse 3 :"
      = f.input :cp, :label => "CP :"
      = f.input :city, :label => "Ville :"
      = f.input :country, :label => "Pays :", :priority_countries => ["FR", "CH", "BE"]
      = f.input :email, :label => "Email :"
      = f.input :phone, :label => "Tel :"
      
      = f.input :start_at, :label => "Date d'entrée :", :as => :date
      = f.input :stop_at, :label => "Date de sortie :", :as => :date
      
      =# f.input :avenant, :label => "Avenant ?" 
      
     
      
      = f.input :birth, :label => "Date de naissance :", :as => :date
      
      
      
      
      
      
      
      
      
  .actions=f.submit "sauvegarder", :class => "btn btn-primary"
  