2017-11-13 22:49:58 +01:00

32 lines
1.2 KiB
Plaintext

= semantic_form_for [:admin, @contact], :remote => true do |f|
.content
=f.inputs do
= f.input :contact_status, :label => "Status :", :collection => ["En cours", "Signés","En attente", "Archivé"], :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
= 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 :small_comment, :label => "Commentaire court"
= f.input :notes, :label => "Notes"
.actions
=f.submit "Sauvegarder", :class => "btn btn-primary"