diff --git a/app/views/admin/legislation/processes/_form.html.erb b/app/views/admin/legislation/processes/_form.html.erb
index 1e06c552c..d95f65598 100644
--- a/app/views/admin/legislation/processes/_form.html.erb
+++ b/app/views/admin/legislation/processes/_form.html.erb
@@ -4,253 +4,258 @@
<% if @process.errors.any? %>
-
+
+
+
<%= t("admin.legislation.processes.form.draft_phase_description") %>
+
-
-
-
<%= t("admin.legislation.processes.form.draft_phase_description") %>
-
+
+ <%= f.text_field :draft_start_date,
+ value: format_date_for_calendar_form(@process.draft_start_date),
+ class: "js-calendar-full",
+ id: "draft_start_date" %>
+
-
- <%= f.text_field :draft_start_date,
- value: format_date_for_calendar_form(@process.draft_start_date),
- class: "js-calendar-full",
- id: "draft_start_date" %>
-
+
+ <%= f.text_field :draft_end_date,
+ value: format_date_for_calendar_form(@process.draft_end_date),
+ class: "js-calendar-full",
+ id: "draft_end_date" %>
+
+
+ <%= f.check_box :draft_phase_enabled, checked: @process.draft_phase.enabled?, label: t("admin.legislation.processes.form.enabled") %>
+
-
- <%= f.text_field :draft_end_date,
- value: format_date_for_calendar_form(@process.draft_end_date),
- class: "js-calendar-full",
- id: "draft_end_date" %>
-
-
- <%= f.check_box :draft_phase_enabled, checked: @process.draft_phase.enabled?, label: t("admin.legislation.processes.form.enabled") %>
-
+
+
+
-
-
-
+
+
+
-
-
-
+
+ <%= f.text_field :start_date,
+ value: format_date_for_calendar_form(@process.start_date),
+ class: "js-calendar-full",
+ id: "start_date" %>
+
-
- <%= f.text_field :start_date,
- value: format_date_for_calendar_form(@process.start_date),
- class: "js-calendar-full",
- id: "start_date" %>
-
+
+ <%= f.text_field :end_date,
+ value: format_date_for_calendar_form(@process.end_date),
+ class: "js-calendar-full",
+ id: "end_date" %>
+
+
+ <%= f.check_box :published, checked: @process.published?, label: t("admin.legislation.processes.form.enabled") %>
+
-
- <%= f.text_field :end_date,
- value: format_date_for_calendar_form(@process.end_date),
- class: "js-calendar-full",
- id: "end_date" %>
-
-
- <%= f.check_box :published, checked: @process.published?, label: t("admin.legislation.processes.form.enabled") %>
-
+
+
+
-
-
-
+
+
+
-
-
-
+
+ <%= f.text_field :debate_start_date,
+ value: format_date_for_calendar_form(@process.debate_start_date),
+ class: "js-calendar-full",
+ id: "debate_start_date" %>
+
-
- <%= f.text_field :debate_start_date,
- value: format_date_for_calendar_form(@process.debate_start_date),
- class: "js-calendar-full",
- id: "debate_start_date" %>
-
+
+ <%= f.text_field :debate_end_date,
+ value: format_date_for_calendar_form(@process.debate_end_date),
+ class: "js-calendar-full",
+ id: "debate_end_date" %>
+
+
+ <%= f.check_box :debate_phase_enabled, checked: @process.debate_phase.enabled?, label: t("admin.legislation.processes.form.enabled") %>
+
-
- <%= f.text_field :debate_end_date,
- value: format_date_for_calendar_form(@process.debate_end_date),
- class: "js-calendar-full",
- id: "debate_end_date" %>
-
-
- <%= f.check_box :debate_phase_enabled, checked: @process.debate_phase.enabled?, label: t("admin.legislation.processes.form.enabled") %>
-
+
+
+
-
-
-
+
+
+
-
-
-
+
+ <%= f.text_field :proposals_phase_start_date,
+ value: format_date_for_calendar_form(@process.proposals_phase_start_date),
+ class: "js-calendar-full",
+ id: "proposals_phase_start_date" %>
+
-
- <%= f.text_field :proposals_phase_start_date,
- value: format_date_for_calendar_form(@process.proposals_phase_start_date),
- class: "js-calendar-full",
- id: "proposals_phase_start_date" %>
-
+
+ <%= f.text_field :proposals_phase_end_date,
+ value: format_date_for_calendar_form(@process.proposals_phase_end_date),
+ class: "js-calendar-full",
+ id: "proposals_phase_end_date" %>
+
+
+ <%= f.check_box :proposals_phase_enabled, checked: @process.proposals_phase.enabled?, label: t("admin.legislation.processes.form.enabled") %>
+
-
- <%= f.text_field :proposals_phase_end_date,
- value: format_date_for_calendar_form(@process.proposals_phase_end_date),
- class: "js-calendar-full",
- id: "proposals_phase_end_date" %>
-
-
- <%= f.check_box :proposals_phase_enabled, checked: @process.proposals_phase.enabled?, label: t("admin.legislation.processes.form.enabled") %>
-
+
+
+
-
-
-
+
+
+
-
-
-
+
+ <%= f.text_field :allegations_start_date,
+ value: format_date_for_calendar_form(@process.allegations_start_date),
+ class: "js-calendar-full",
+ id: "allegations_start_date" %>
+
-
- <%= f.text_field :allegations_start_date,
- value: format_date_for_calendar_form(@process.allegations_start_date),
- class: "js-calendar-full",
- id: "allegations_start_date" %>
-
+
+ <%= f.text_field :allegations_end_date,
+ value: format_date_for_calendar_form(@process.allegations_end_date),
+ class: "js-calendar-full",
+ id: "allegations_end_date" %>
+
+
+ <%= f.check_box :allegations_phase_enabled, checked: @process.allegations_phase.enabled?, label: t("admin.legislation.processes.form.enabled") %>
+
-
- <%= f.text_field :allegations_end_date,
- value: format_date_for_calendar_form(@process.allegations_end_date),
- class: "js-calendar-full",
- id: "allegations_end_date" %>
-
-
- <%= f.check_box :allegations_phase_enabled, checked: @process.allegations_phase.enabled?, label: t("admin.legislation.processes.form.enabled") %>
-
+
+
+
-
-
-
+
+ <%= f.text_field :draft_publication_date,
+ value: format_date_for_calendar_form(@process.draft_publication_date),
+ class: "js-calendar-full",
+ id: "draft_publication_date" %>
+
+
+ <%= f.check_box :draft_publication_enabled, checked: @process.draft_publication.enabled?, label: t("admin.legislation.processes.form.enabled") %>
+
-
- <%= f.text_field :draft_publication_date,
- value: format_date_for_calendar_form(@process.draft_publication_date),
- class: "js-calendar-full",
- id: "draft_publication_date" %>
-
-
- <%= f.check_box :draft_publication_enabled, checked: @process.draft_publication.enabled?, label: t("admin.legislation.processes.form.enabled") %>
-
+
+
+
-
-
-
+
+ <%= f.text_field :result_publication_date,
+ value: format_date_for_calendar_form(@process.result_publication_date),
+ class: "js-calendar-full",
+ id: "result_publication_date" %>
+
+
+ <%= f.check_box :result_publication_enabled, checked: @process.result_publication.enabled?, label: t("admin.legislation.processes.form.enabled") %>
+
-
- <%= f.text_field :result_publication_date,
- value: format_date_for_calendar_form(@process.result_publication_date),
- class: "js-calendar-full",
- id: "result_publication_date" %>
-
-
- <%= f.check_box :result_publication_enabled, checked: @process.result_publication.enabled?, label: t("admin.legislation.processes.form.enabled") %>
-
+
+
+
-
-
-
+
+ <%= render "documents/nested_documents", documentable: @process, f: f %>
+
-
- <%= render "documents/nested_documents", documentable: @process, f: f %>
-
+
+
+
-
-
-
+
+ <%= render "images/nested_image", imageable: @process, f: f %>
+
-
- <%= render "images/nested_image", imageable: @process, f: f %>
-
+
+
+
-
-
-
+
+
<%= t("admin.legislation.processes.form.banner_title") %>
+
-
-
<%= t("admin.legislation.processes.form.banner_title") %>
-
-
-
- <%= f.label :background_color, nil, for: "background_color_input" %>
-
<%= t("admin.shared.color_help") %>
-
-
- <%= f.text_field :background_color, label: false, type: :color,
- value: bg_color_or_default %>
-
-
- <%= f.text_field :background_color, label: false, id: "background_color_input" %>
+
+ <%= f.label :background_color, nil, for: "background_color_input" %>
+
<%= t("admin.shared.color_help") %>
+
+
+ <%= f.text_field :background_color, label: false, type: :color,
+ value: bg_color_or_default %>
+
+
+ <%= f.text_field :background_color, label: false, id: "background_color_input" %>
+
-
-
- <%= f.label :font_color, nil, for: "font_color_input" %>
-
<%= t("admin.shared.color_help") %>
-
-
- <%= f.text_field :font_color, label: false, type: :color, value: font_color_or_default %>
-
-
- <%= f.text_field :font_color, label: false, id: "font_color_input" %>
+
+ <%= f.label :font_color, nil, for: "font_color_input" %>
+
<%= t("admin.shared.color_help") %>
+
+
+ <%= f.text_field :font_color, label: false, type: :color, value: font_color_or_default %>
+
+
+ <%= f.text_field :font_color, label: false, id: "font_color_input" %>
+
+
+
+
+
-
-
+
+ <%= f.translatable_fields do |translations_form| %>
+
+ <%= translations_form.text_field :title,
+ placeholder: t("admin.legislation.processes.form.title_placeholder") %>
+
+
+
+ <%= translations_form.text_area :summary,
+ rows: 2,
+ placeholder: t("admin.legislation.processes.form.summary_placeholder"),
+ hint: t("admin.legislation.processes.form.use_markdown") %>
+
+
+
+ <%= translations_form.text_area :description,
+ rows: 5,
+ placeholder: t("admin.legislation.processes.form.description_placeholder"),
+ hint: t("admin.legislation.processes.form.use_markdown") %>
+
+
+
+ <%= translations_form.text_area :additional_info,
+ rows: 10,
+ placeholder: t("admin.legislation.processes.form.additional_info_placeholder"),
+ hint: t("admin.legislation.processes.form.use_markdown") %>
+
+ <% end %>
- <%= f.translatable_fields do |translations_form| %>
-
- <%= translations_form.text_field :title,
- placeholder: t("admin.legislation.processes.form.title_placeholder") %>
+
+
+ <%= f.submit(class: "button success expanded", value: t("admin.legislation.processes.#{admin_submit_action(@process)}.submit_button")) %>
-
-
- <%= translations_form.text_area :summary,
- rows: 2,
- placeholder: t("admin.legislation.processes.form.summary_placeholder"),
- hint: t("admin.legislation.processes.form.use_markdown") %>
-
-
-
- <%= translations_form.text_area :description,
- rows: 5,
- placeholder: t("admin.legislation.processes.form.description_placeholder"),
- hint: t("admin.legislation.processes.form.use_markdown") %>
-
-
-
- <%= translations_form.text_area :additional_info,
- rows: 10,
- placeholder: t("admin.legislation.processes.form.additional_info_placeholder"),
- hint: t("admin.legislation.processes.form.use_markdown") %>
-
- <% end %>
-
-
- <%= f.submit(class: "button success expanded", value: t("admin.legislation.processes.#{admin_submit_action(@process)}.submit_button")) %>
<% end %>