<%= link_to :back, class: "muted-link" do %> <%= icon "chevron-left", class: "icon--small" %> <%= t(".back") %> <% end %>

<%= t(".title") %>

<% if translated_attribute(feature_settings.new_proposal_help_text).present? %> <%= render partial: "decidim/shared/announcement", locals: { announcement: feature_settings.new_proposal_help_text } %> <% end %>
<%= t(".proposal_edit_before_minutes", count: feature_settings.proposal_edit_before_minutes) %>
<%= decidim_form_for(@form) do |form| %>
<%= form.text_field :title %>
<%= form.text_area :body, rows: 10 %>
<% if feature_settings.geocoding_enabled? %>
<%= form.check_box :has_address %>
<%= form.text_field :address %>
<% end %> <% if @form.categories&.any? %>
<%= form.categories_select :category_id, @form.categories, prompt: t(".select_a_category") %>
<% end %> <% if current_participatory_space.has_subscopes? %>
<%= scopes_picker_field form, :scope_id %>
<% end %> <% if current_user.user_groups.verified.any? %>
<%= form.select :user_group_id, current_user.user_groups.verified.map{|g| [g.name, g.id]}, prompt: current_user.name %>
<% end %> <% if feature_settings.attachments_allowed? %>
<%= t('.attachment_legend') %> <%= form.fields_for :attachment, @form.attachment do |form| %>
<%= form.text_field :title %>
<%= form.upload :file, optional: false %>
<% end %>
<% end %>
<%= form.submit t(".send"), class: "button expanded", data: { disable: true } %>
<% end %>
<%= javascript_include_tag "decidim/proposals/add_proposal" %>