<%= form_for(@task) do |f| %> <% if @task.errors.any? %>

<%= pluralize(@task.errors.count, "error") %> prohibited this task from being saved:

<% end %>
<%= f.label :title %>
<%= f.text_field :title %>
<%= f.label :description %>
<%= f.text_area :description %>
<%= f.label :priority %>
<%= f.select :priority, options_for_select(TasksManagement::Task.priorities) %>
<%= f.label :state %>
<%= f.select :state, options_for_select(TasksManagement::Task.states) %>
<%= f.label :parent_id %>
<%= f.collection_select :parent_id, TasksManagement::Task.all, :id, :title, include_blank: true %>
<%= f.label :owner_id %>
<%= f.number_field :owner_id %>
<%= f.label :requester_id %>
<%= f.number_field :requester_id %>
<%= f.label :end_date %>
<%= f.date_select :end_date %>
<%= f.submit %>
<% end %>