<%= form.text_field :title, class: "js-hashtags", hashtaggable: true, value: form_presenter.title %>
<%= form.text_area :body, rows: 10, class: "js-hashtags", hashtaggable: true, 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 %>
<%= 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 component_settings.geocoding_enabled? %>
<%= form.check_box :has_address, checked: form_has_address? %>
<%= form.text_field :address %>
<% end %> <% if @form.categories&.any? %>
<%= form.categories_select :category_id, @form.categories, prompt: t("decidim.proposals.collaborative_drafts.edit.select_a_category") %>
<% end %> <% if current_participatory_space.has_subscopes? %>
<%= scopes_picker_field form, :scope_id %>
<% 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.fields_for :attachment, @form.attachment do |nested_form| %>
<%= nested_form.text_field :title %>
<%= nested_form.upload :file, optional: false %> <% if @form.errors[:attachment].present? %> <% @form.errors[:attachment].each do |message| %> <%= message %> <% end %> <% end %>
<% end %>
<% end %>