<%= translatable_form_for(proposal, url: url, html: { class: "proposal-form" }) do |f| %> <%= render "shared/errors", resource: proposal %>
<%= t("shared.required") %> <%= render "shared/globalize_locales", resource: proposal %> <%= f.translatable_fields do |translations_form| %>
<%= translations_form.text_field :title, maxlength: Proposal.title_max_length, data: suggest_data(proposal) %>
<%= translations_form.text_area :summary, rows: 4, maxlength: 200, hint: t("proposals.form.proposal_summary_note") %>
<%= translations_form.text_area :description, maxlength: Proposal.description_max_length, class: "html-area" %>
<% end %>
<%= f.invisible_captcha :subtitle %>
<%= t("shared.optional") %>
<%= f.text_field :video_url, hint: t("proposals.form.proposal_video_url_note") %>
<% if feature?(:allow_images) %>
<%= render "images/nested_image", f: f %>
<% end %> <% if feature?(:allow_attached_documents) %>
<%= render "documents/nested_documents", f: f %>
<% end %> <% if Geozone.any? %>
<%= f.select :geozone_id, geozone_select_options, include_blank: t("geozones.none") %>
<% end %> <% 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"), 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.text_field :responsible_name, hint: t("proposals.form.proposal_responsible_name_note") %>
<% end %> <%= render SDG::RelatedListSelectorComponent.new(f) %>
<% 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 %>