= semantic_form_for [:admin, @contact], :remote => true do |f| 
  .content
    =f.inputs do
      = 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
      = f.input :archived, :label => "Archivé ?"
      = f.input :name, :label => "Nom"
      = f.input :email, :label => "Email"
      = f.input :tel, :label => "Téléphone"
      = f.input :place, :label => "Lieu"
      
      = f.input :message, :label => "Message"
  
      = 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
    
      
      = f.input :notes, :label => "Notes"
    
  
  
    
  .actions
    =f.submit "Sauvegarder", :class => "btn btn-primary"
      
  