<%= form_for [:admin, @process] do |f| %> <% if @process.errors.any? %>
<%= @process.errors.count %> <%= t("admin.legislation.processes.errors.form.error", count: @process.errors.count) %>
<% end %>
<%= t('admin.legislation.processes.form.start') %>
<%= f.text_field :start_date, label: false, value: format_date_for_calendar_form(@process.start_date), class: "js-calendar-full", id: "start_date" %>
<%= t('admin.legislation.processes.form.end') %>
<%= f.text_field :end_date, label: false, value: format_date_for_calendar_form(@process.end_date), class: "js-calendar-full", id: "end_date" %>
<%= t('admin.legislation.processes.form.start') %>
<%= f.text_field :debate_start_date, label: false, value: format_date_for_calendar_form(@process.debate_start_date), class: "js-calendar-full", id: "debate_start_date" %>
<%= t('admin.legislation.processes.form.end') %>
<%= f.text_field :debate_end_date, label: false, value: format_date_for_calendar_form(@process.debate_end_date), class: "js-calendar-full", id: "debate_end_date" %>
<%= t('admin.legislation.processes.form.start') %>
<%= f.text_field :allegations_start_date, label: false, value: format_date_for_calendar_form(@process.allegations_start_date), class: "js-calendar-full", id: "allegations_start_date" %>
<%= t('admin.legislation.processes.form.end') %>
<%= f.text_field :allegations_end_date, label: false, value: format_date_for_calendar_form(@process.allegations_end_date), class: "js-calendar-full", id: "allegations_end_date" %>
<%= f.label :draft_publication_date %>
<%= f.text_field :draft_publication_date, label: false, value: format_date_for_calendar_form(@process.draft_publication_date), class: "js-calendar-full", id: "draft_publication_date" %>
<%= f.label :final_publication_date %>
<%= f.text_field :final_publication_date, label: false, value: format_date_for_calendar_form(@process.final_publication_date), class: "js-calendar-full", id: "final_publication_date" %>
<%= f.label :title %>
<%= f.text_field :title, label: false %>
<%= f.label :description %> <%= t('admin.legislation.processes.form.use_markdown') %>
<%= f.text_area :description, label: false, rows: 5 %>
<%= f.label :target %> <%= t('admin.legislation.processes.form.use_markdown') %>
<%= f.text_area :target, label: false, rows: 5 %>
<%= f.label :how_to_participate %> <%= t('admin.legislation.processes.form.use_markdown') %>
<%= f.text_area :how_to_participate, label: false, rows: 5 %>
<%= f.label :additional_info %> <%= t('admin.legislation.processes.form.use_markdown') %>
<%= f.text_area :additional_info, label: false, rows: 10 %>
<%= f.submit(class: "button expanded", value: t("admin.legislation.processes.#{admin_submit_action(@process)}.submit_button")) %>
<% end %>