foodsoft/app/views/tasks/_form.html.haml
Patrick Gansterer 39aff78f11 Remove protected_attributes gem
We do not enforce the rules, so removing it and switching the existing
annotations to strong_parameters does not make our situation worse.
2019-10-29 18:09:24 +01:00

12 lines
519 B
Text

= 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
= form.association :workgroup, collection: Workgroup.order(:name)
= form.input :due_date, as: :date_picker
- unless local_assigns[:periodic]
= form.input :done
= render 'form_javascript'