%= 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 %>
<% end %>