<%= form.translated :text_field, :title, autofocus: true %>
<%= form.translated :editor, :description %>
<% if @form.parent_id %>
<%= form.select :parent_id, parent_results.map{|result| [translated_attribute(result.title), result.id] }, include_blank: true %>
<% else %>
<% if current_participatory_space.has_subscopes? %>
<%= scopes_picker_field form, :decidim_scope_id %>
<% end %>
<%= form.categories_select :decidim_category_id, current_participatory_space.categories, include_blank: true, disable_parents: false %>
<% end %>
<%= form.date_field :start_date %>
<%= form.date_field :end_date %>
<%= form.select :decidim_accountability_status_id, statuses.map{|status| [translated_attribute(status.name), status.id, { "data-progress" => status.progress }] }, include_blank: true %>
<%= form.number_field :progress %>
<% if @form.proposals %>
<% picker_options = { id: "decidim_accountability_proposals", class: "picker-multiple", name: "result[proposal_ids]", multiple: true }
prompt_params= { url: "proposals", text: t(".add_proposal") } %>
<%= form.data_picker(:proposals, picker_options, prompt_params) {|item| { url: "proposals", text: "##{item.id}- #{item.title}" }} %>
<% end %>
<% if @form.projects %>
<%= form.select :project_ids,
@form.projects,
{},
{ multiple: true, class: "chosen-select" } %>
<% end %>