<%= form.text_field :title, class: "js-hashtags", hashtaggable: true, value: present(@proposal).title %>
<%= form.text_area :body, rows: 10, class: "js-hashtags", hashtaggable: true, value: present(@proposal).body %>
<% 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.proposals.edit.select_a_category") %>
<% end %> <% if current_participatory_space.has_subscopes? %>
<%= scopes_picker_field form, :scope_id %>
<% end %> <% if current_user.user_groups.verified.any? %>
<%= user_group_select_field form, :user_group_id %>
<% end %> <% if component_settings.attachments_allowed? && @proposal %>
<%= t("attachment_legend", scope: "decidim.proposals.proposals.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 %>