2012-10-08 21:52:03 +02:00
|
|
|
- content_for :javascript do
|
2011-05-14 19:41:46 +02:00
|
|
|
:javascript
|
|
|
|
$(function() {
|
|
|
|
$("#task_user_list").tokenInput("#{users_path(:format => :json)}", {
|
|
|
|
crossDomain: false,
|
2012-07-31 18:48:41 +02:00
|
|
|
prePopulate: $("#task_user_list").data("pre"),
|
|
|
|
hintText: 'Nach Nutzerin suchen',
|
|
|
|
noResultText: 'Keine Nutzerin gefunden',
|
2012-10-08 21:52:03 +02:00
|
|
|
searchingText: 'Suche ...',
|
|
|
|
theme: 'facebook'
|
2011-05-14 19:41:46 +02:00
|
|
|
});
|
|
|
|
});
|
|
|
|
|
2012-10-08 21:52:03 +02:00
|
|
|
- content_for :sidebar do
|
|
|
|
= render "shared/workgroup_members"
|
|
|
|
|
2011-05-14 19:02:52 +02:00
|
|
|
= simple_form_for @task do |f|
|
2012-11-12 09:03:23 +01:00
|
|
|
= f.hidden_field :current_user_id
|
2011-05-14 19:02:52 +02:00
|
|
|
= f.input :name
|
2012-08-24 11:11:40 +02:00
|
|
|
= f.input :description, as: :text, input_html: {rows: 10}
|
2011-05-14 19:02:52 +02:00
|
|
|
= f.input :duration, :as => :select, :collection => 1..3
|
2011-05-15 22:06:54 +02:00
|
|
|
= f.input :user_list, :as => :string, :input_html => { 'data-pre' => @task.users.map { |u| u.token_attributes }.to_json }
|
2011-05-14 19:02:52 +02:00
|
|
|
= f.input :required_users
|
|
|
|
= f.association :workgroup
|
2012-10-08 21:52:03 +02:00
|
|
|
= f.input :due_date, as: :date_picker
|
2012-11-28 10:13:54 +01:00
|
|
|
= f.input :periodic, as: :boolean
|
2012-10-08 21:52:03 +02:00
|
|
|
= f.input :done
|
|
|
|
.form-actions
|
|
|
|
= f.submit class: 'btn'
|
|
|
|
= link_to 'oder abbrechen', :back
|