<%= decidim_form_for(@form) do |form| %>
<%= form.text_field :title %>
<%= form.text_area :description, rows: 10 %>
<% 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 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 %>
<%= form.submit t(".create"), class: "button expanded", data: { disable: true } %>
<% end %>