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

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

<%= decidim_form_for(@form) do |form| %>
<%= form.text_field :title %>
<%= text_editor_for_debate_description(form) %>
<% if current_participatory_space.categories&.any? %>
<%= form.categories_select :category_id, current_participatory_space.categories, prompt: t(".select_a_category"), disable_parents: false %>
<% end %> <% if Decidim::UserGroups::ManageableUserGroups.for(current_user).verified.any? %>
<%= form.select :user_group_id, Decidim::UserGroups::ManageableUserGroups.for(current_user).verified.map{|g| [g.name, g.id]}, prompt: current_user.name %>
<% end %>
<%= form.submit t(".create"), class: "button expanded", data: { disable: true } %>
<% end %>
<%= javascript_include_tag "decidim/proposals/add_proposal" %>