%= form_with model: @job, url: form_target, id: "job_form" do |f| %> <%= error_messages_for @job %>
<%= f.label :name %> <%= f.text_field :name %>
<%= f.label :description %> <%= f.text_area :description %>
<%= f.label :category %> <%= f.collection_select :category_id, JobCategory.all, :id, :name %>
<%= f.label :starts_on %> <%= f.date_field :starts_on %>
<%= f.label :ends_on %> <%= f.date_field :ends_on %> <%= f.hidden_field :project_id, value: @job.project.id %>