<%= form_required_explanation %>
<%= form.text_field :title, class: "js-hashtags", value: form_presenter.title %>
<%= form.text_area :body, rows: 10, class: "js-hashtags", value: form_presenter.body(extras: false).strip %>
<% 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 %>
<% end %> <% if @form.categories&.any? %>
<%= form.categories_select :category_id, @form.categories, include_blank: t("decidim.proposals.collaborative_drafts.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? %>
<%= t("attachment_legend", scope: "decidim.proposals.collaborative_drafts.edit") %>
<%= form.attachment :documents, multiple: false, label: t("decidim.proposals.collaborative_drafts.new.add_file"), button_label: t("decidim.proposals.collaborative_drafts.new.add_file"), button_edit_label: t("decidim.proposals.collaborative_drafts.new.edit_file"), help_i18n_scope: "decidim.forms.file_help.file" %>
<% end %>