2019-04-11 17:07:52 +02:00

15 lines
514 B
Plaintext

= semantic_form_for [:admin, @contact_action], :remote => true do |f|
.content
=f.hidden_field :contact_id
=f.inputs do
= f.input :action_at, :label => "Date", :as =>:qi_datetime_picker
= f.input :admin_id, :label => "Par ?", :collection => Admin.where(:contact_role => true).all.map{|u|[ u.firstname.to_s+" "+u.name.to_s, u.id]}, :as => :select
= f.input :action_message, :label => "Message"
.actions
=f.submit "Sauvegarder", :class => "btn btn-primary"