foodsoft/app/views/tasks/_form.html.haml

29 lines
946 B
Text
Raw Normal View History

2012-10-08 21:52:03 +02:00
- content_for :javascript do
: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'
});
});
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|
= f.input :name
= 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
= f.input :done
.form-actions
= f.submit class: 'btn'
= link_to 'oder abbrechen', :back