<%= decidim_form_for(@form, url: election_question_proposals_import_path, html: { class: "form import_proposals" }) do |f| %> <% if @form.origin_components.any? %>

<%= title %>

<%= f.select :origin_component_id, @form.origin_components_collection, prompt: t(".select_component") %>
<%= f.check_box :import_all_accepted_proposals %>
<%= f.submit t(".create") %>
<% else %>

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

<% end %> <% end %>