2015-05-08 17:39:20 +02:00
|
|
|
= form.input :name
|
|
|
|
= form.input :description, as: :text, input_html: {rows: 10}
|
|
|
|
= form.input :duration, :as => :select, :collection => 1..3
|
|
|
|
- unless local_assigns[:periodic]
|
|
|
|
= form.input :user_list, :as => :string, :input_html => { 'data-pre' => form.object.users.map(&:token_attributes).to_json }
|
|
|
|
= form.input :required_users
|
2016-02-25 13:16:48 +01:00
|
|
|
= form.association :workgroup, collection: Workgroup.order(:name)
|
2015-05-08 17:39:20 +02:00
|
|
|
= form.input :due_date, as: :date_picker
|
|
|
|
- unless local_assigns[:periodic]
|
|
|
|
= form.input :done
|
2015-05-08 20:54:48 +02:00
|
|
|
|
|
|
|
= render 'form_javascript'
|