= semantic_form_for [:admin, @contact], :remote => true do |f| 
  .content
    =f.inputs do
      = f.input :provenance_id, :label => "Provenance :", :collection => Category.all.map{|u|[ u.name, u.id]}, :as => :select , :include_blank => false
      = f.input :contact_status, :label => "Status :", :collection => ["En cours","En attente"], :include_blank => false
      = f.input :urgent, :label => "Urgent ?"
      = f.input :readed, :label => "Lu ?"
      = f.input :admin_id, :label => "Géré par ?", :collection => Admin.where(:contact_role => true).all.map{|u|[ u.username, u.id]}, :as => :select 
      =#.where(:contact_role => true)
      = f.input :archived, :label => "Archivé ?"
      = f.input :corporate, :label => "Organisation"
      = f.input :name, :label => "Nom"
      = f.input :firstname, :label => "Prénom"
      = f.input :email, :label => "Email"
      = f.input :phone, :label => "Téléphone"

      
      = f.input :message, :label => "Message"
  
      
    
      = f.input :small_comment, :label => "Commentaire court"
      
      = f.input :notes, :label => "Notes"
      
      = f.input :address, :label => "Adresse"
      = f.input :address2, :label => "Adresse (suite)"
      = f.input :cp, :label => "Code postal"
      = f.input :city, :label => "Ville"
      = f.input :country, :label => "Pays", :as => :string
      
    
  
  
    
  .actions
    =f.submit "Sauvegarder", :class => "btn btn-primary"
      
  