<%= decidim_form_for(@form) do |form| %>
<%= form.text_field :title %>
<%= form.text_area :body, rows: 10 %>
<% if @form.categories&.any? %>
<%= form.categories_select :category_id, @form.categories, prompt: t(".select_a_category") %>
<% end %>
<% if @form.scopes&.any? && feature_settings.scoped_proposals_enabled %>
<%= form.select :scope_id, @form.scopes.map{|s| [s.name, s.id]}, prompt: t(".select_a_scope") %>
<% 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(".send"), class: "button expanded" %>
<% end %>