<%= semantic_form_for [@customer, @task], :remote => (remote || false), :html => { :class => "task-side form remote_form" }, :method => (params[:action] == "edit" ? :put : :post) do |f| %> <%= render 'shared/error_messages', object: f.object %>
<%= title %>
<%= f.input :name %>
<%= f.input :due_time, :as => :string, :input_html => { 'data-behaviour' => 'datetimepicker' } %>
<%= f.input :type, collection: task_types_for_current_user() %>
<%= f.input :contact, collection: @customer.contacts %> <%= f.input :assigned, collection: User.all %>
<%= f.input :notes, :as => :text, :input_html => { rows: 4 } %>

<%= t("tasks.form.save_without_feedback.title") %>

<%= t("tasks.form.save_with_feedback.title") %>

<%= f.semantic_fields_for :feedbacks do |feedback| %>
<%= feedback.input :resolution_id, :label => t("feedbacks.resolution"), :collection => SystemTaskResolution.all %> <%= feedback.input :notes, :as => :text, :label => t("feedbacks.notes"), :input_html => { rows: 3 } %>
<% end %>
<%= f.actions %>
<% end %>