<%= form_required_explanation %>
<%= form.text_field :title, class: "js-hashtags", value: form_presenter.title %>
<%= text_editor_for_proposal_body(form) %>
<% if @form.component_automatic_hashtags.any? %>
<%= form.label :automatic_hashtags %>
<% @form.component_automatic_hashtags.each do |hashtag| %> <% end %>
<% end %> <% if @form.component_suggested_hashtags.any? %>
<%= form.label :suggested_hashtags, nil, for: nil %>
<%= form.collection_check_boxes :suggested_hashtags, @form.component_suggested_hashtags.map { |hashtag| [hashtag.downcase, "##{hashtag}"] }, :first, :last do |option| option.label { option.check_box(checked: @form.suggested_hashtag_checked?(option.value)) + option.text } end %>
<% end %> <% if @form.geocoding_enabled? %>
<%= form.check_box :has_address, checked: form_has_address? %>
<%= form.geocoding_field :address, placeholder: t("decidim.proposals.proposals.placeholder.address") %>
<% end %> <% if @form.categories&.any? %>
<%= form.categories_select :category_id, @form.categories, include_blank: t("decidim.proposals.proposals.edit.select_a_category") %>
<% end %> <% if current_component.has_subscopes? %>
<%= scopes_picker_field form, :scope_id, root: current_component.scope %>
<% end %> <% if current_organization.user_groups_enabled? && Decidim::UserGroups::ManageableUserGroups.for(current_user).verified.any? %>
<%= user_group_select_field form, :user_group_id %>
<% end %> <% if component_settings.attachments_allowed? && @proposal %>
<%= t("gallery_legend", scope: "decidim.proposals.proposals.edit") %> <% if @form.photos.any? %> <% @form.photos.each do |photo| %> <% end %> <% end %>
<%= form.file_field :add_photos, multiple: false, label: t("add_images", scope: "decidim.proposals.proposals.edit") %>
<%= t("attachment_legend", scope: "decidim.proposals.proposals.edit") %> <% if @form.documents.any? %> <% @form.documents.each do |document| %>
<%= link_to translated_attribute(document.title), document.url %> <%= document.file_type %> <%= number_to_human_size(document.file_size) %> <%= form.hidden_field :documents, multiple: true, value: document.id, id: "document-#{document.id}" %>
<% end %> <% end %>
<%= form.file_field :add_documents, multiple: true, label: t("add_documents", scope: "decidim.proposals.proposals.edit") %>
<% end %>