15 lines
664 B
Plaintext
15 lines
664 B
Plaintext
= semantic_form_for [:admin, @contact_action], :remote => true do |f|
|
|
.content
|
|
=f.hidden_field :contact_id
|
|
=f.inputs do
|
|
= f.input :contact_action_pattern_id, :label => "Action", :collection => (ContactActionPattern.all.map{|u|[ u.title, u.id]}), :as => :select, :include_blank => false
|
|
= 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.username, u.id]}), :as => :select
|
|
|
|
= f.input :action_message, :label => "Message"
|
|
|
|
|
|
.actions
|
|
=f.submit "Sauvegarder", :class => "btn btn-primary"
|
|
|
|
|