<%= form_for(@proposal, url: form_url) do |f| %> <%= render 'shared/errors', resource: @proposal %>
<%= f.label :title, t("proposals.form.proposal_title") %> <%= f.text_field :title, maxlength: Proposal.title_max_length, placeholder: t("proposals.form.proposal_title"), label: false, data: {js_suggest_result: "js_suggest_result", js_suggest: "#js-suggest", js_url: suggest_proposals_path}%>
<%= f.invisible_captcha :subtitle %>
<%= f.label :question, t("proposals.form.proposal_question") %>

<%= t("proposals.form.proposal_question_example_html") %>

<%= f.text_field :question, maxlength: Proposal.question_max_length, placeholder: t("proposals.form.proposal_question"), label: false, aria: {describedby: "question-help-text"} %>
<%= f.label :summary, t("proposals.form.proposal_summary") %>

<%= t("proposals.form.proposal_summary_note") %>

<%= f.text_area :summary, rows: 4, maxlength: 200, label: false, placeholder: t('proposals.form.proposal_summary'), aria: {describedby: "summary-help-text"} %>
<%= f.label :description, t("proposals.form.proposal_text") %> <%= f.cktext_area :description, maxlength: Proposal.description_max_length, ckeditor: { language: I18n.locale }, label: false %>
<%= f.label :video_url, t("proposals.form.proposal_video_url") %>

<%= t("proposals.form.proposal_video_url_note") %>

<%= f.text_field :video_url, placeholder: t("proposals.form.proposal_video_url"), label: false, aria: {describedby: "video-url-help-text"} %>
<%= f.label :external_url, t("proposals.form.proposal_external_url") %> <%= f.text_field :external_url, placeholder: t("proposals.form.proposal_external_url"), label: false %>
<% if feature?(:allow_images) %>
<%= render 'images/nested_image', imageable: @proposal, f: f %>
<% end %> <% if feature?(:allow_attached_documents) %>
<%= render 'documents/nested_documents', documentable: @proposal, f: f %>
<% end %>
<%= f.label :geozone_id, t("proposals.form.geozone") %> <%= f.select :geozone_id, geozone_select_options, {include_blank: t("geozones.none"), label: false} %>
<% if feature?(:map) %>
<%= render 'map_locations/form_fields', form: f, map_location: @proposal.map_location || MapLocation.new, label: t("proposals.form.map_location"), help: t("proposals.form.map_location_instructions"), remove_marker_label: t("proposals.form.map_remove_marker"), parent_class: "proposal", i18n_namespace: "proposals" %>
<% end %>
<%= f.label :tag_list, t("proposals.form.tags_label") %>

<%= t("proposals.form.tags_instructions") %>

<%= f.label :category_tag_list, t("proposals.form.tag_category_label") %> <% @categories.each do |tag| %> <%= tag.name %> <% end %>

<%= f.text_field :tag_list, value: @proposal.tag_list.to_s, label: false, placeholder: t("proposals.form.tags_placeholder"), class: 'js-tag-list tag-autocomplete', aria: {describedby: "tag-list-help-text"}, data: {js_url: suggest_tags_path} %>
<% if current_user.unverified? %>
<%= f.label :responsible_name, t("proposals.form.proposal_responsible_name") %>

<%= t("proposals.form.proposal_responsible_name_note") %>

<%= f.text_field :responsible_name, placeholder: t("proposals.form.proposal_responsible_name"), label: false, aria: {describedby: "responsible-name-help-text"} %>
<% end %>
<% if @proposal.new_record? %> <%= f.label :terms_of_service do %> <%= f.check_box :terms_of_service, title: t('form.accept_terms_title'), label: false %> <%= t("form.accept_terms", policy: link_to(t("form.policy"), "/privacy", target: "blank"), conditions: link_to(t("form.conditions"), "/conditions", target: "blank")).html_safe %> <% end %> <% end %>
<%= f.submit(class: "button", value: t("proposals.#{action_name}.form.submit_button")) %>
<% end %>