<%= 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, include_blank: 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 %>