%= form_for(@proposal, url: form_url) do |f| %>
<%= render "shared/errors", resource: @proposal %>
<%= f.hidden_field(:legislation_process_id, :value => params[:process_id]) %>
<%= f.text_field :title, maxlength: Legislation::Proposal.title_max_length %>
<%= f.invisible_captcha :subtitle %>
<%= f.text_area :summary, rows: 4, maxlength: 200,
hint: t("proposals.form.proposal_summary_note") %>
<%= f.text_area :description,
maxlength: Legislation::Proposal.description_max_length,
class: "html-area" %>
<%= f.text_field :video_url,
hint: t("proposals.form.proposal_video_url_note") %>
<% if feature?(:allow_images) %>
<%= render "images/nested_image", imageable: @proposal, f: f %>
<% end %>
<%= render "documents/nested_documents", documentable: @proposal, f: f %>
<%= f.select :geozone_id, geozone_select_options, include_blank: t("geozones.none") %>
<%= f.label :tag_list, t("legislation.proposals.form.tags_label") %>
<%= t("proposals.form.tags_instructions") %>
<%= f.text_field :tag_list, value: @proposal.tag_list.to_s,
label: false,
placeholder: t("proposals.form.tags_placeholder"),
class: "js-tag-list",
aria: { describedby: "tag-list-help-text" } %>
<% if @proposal.new_record? %>
<%= f.check_box :terms_of_service,
title: t("form.accept_terms_title"),
label: t("form.accept_terms",
policy: link_to(t("form.policy"), "/privacy", target: "blank"),
conditions: link_to(t("form.conditions"), "/conditions", target: "blank")
) %>
<% end %>
<%= f.submit(class: "button", value: t("proposals.#{action_name}.form.submit_button")) %>
<% end %>