<%= form.text_field :title, class: "js-hashtags", value: form_presenter.title %> <%= text_editor_for_proposal_body(form) %> <% if @form.component_automatic_hashtags.any? %> <%= field_set_tag form.label(:automatic_hashtags, nil, for: nil) do %> <% @form.component_automatic_hashtags.each do |hashtag| %> <%= form.check_box "", checked: true, disabled: true, label: "##{hashtag}", label_options: { class: "form__wrapper-checkbox-label" } %> <% end %> <% end %> <% end %> <% if @form.component_suggested_hashtags.any? %> <%= field_set_tag form.label(:suggested_hashtags, nil, for: nil) do %> <%= form.collection_check_boxes :suggested_hashtags, @form.component_suggested_hashtags.map { |hashtag| [hashtag.downcase, "##{hashtag}"] }, :first, :last, { legend_title: "hey ho" } do |option| option.label(class: "form__wrapper-checkbox-label") { option.check_box(checked: @form.suggested_hashtag_checked?(option.value)) + option.text } end %> <% end %> <% end %> <% if @form.geocoding_enabled? %> <%= form.geocoding_field :address, placeholder: t("decidim.proposals.proposals.placeholder.address") %>

<%= t("instructions", scope: "decidim.proposals.proposals.dynamic_map_instructions") %> <%= t("description", scope: "decidim.proposals.proposals.dynamic_map_instructions") %>

<%= dynamic_map_for proposal_preview_data_for_map(@proposal) %>
<% 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_select_field form, :scope_id, root: current_component.scope %> <% end %> <% if component_settings.attachments_allowed? && @proposal %> <%= form.attachment :documents, multiple: true, label: t("decidim.proposals.proposals.edit.add_documents"), button_label: t("decidim.proposals.proposals.edit.add_documents"), button_edit_label: t("decidim.proposals.proposals.edit.edit_documents"), button_class: "button button__lg button__transparent-secondary w-full", help_i18n_scope: "decidim.forms.file_help.file", help_text: t("attachment_legend", scope: "decidim.proposals.proposals.edit") %> <% end %> <% if current_organization.user_groups_enabled? && Decidim::UserGroups::ManageableUserGroups.for(current_user).verified.any? %> <%= user_group_select_field form, :user_group_id %> <% end %>