Sha256: 65b1871b99edd3d69a93ca5d367c40bb2bcff958ac5ccaed464ba9760968df49

Contents?: true

Size: 940 Bytes

Versions: 19

Compression:

Stored size: 940 Bytes

Contents

<%= decidim_form_for(@form, url: proposals_import_path, html: { class: "form import_proposals" }) do |f| %>
  <% if @form.origin_components.any? %>
    <div class="card">
      <div class="card-divider">
        <h2 class="card-title"><%= title %></h2>
      </div>

      <div class="card-section">
        <div class="row column">
          <%= f.select :origin_component_id, @form.origin_components_collection, prompt: t(".select_component") %>
        </div>
        <div class="row column">
          <%= f.label t(".select_states") %>
          <%= f.collection_check_boxes :states, @form.states_collection, :value, :name %>
        </div>
        <div class="row column">
          <%= f.check_box :import_proposals %>
        </div>
      </div>
    </div>

    <div class="button--double form-general-submit">
      <%= f.submit t(".create") %>
    </div>
  <% else %>
      <p><%= t(".no_components") %></p>
  <% end %>
<% end %>

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
decidim-proposals-0.16.1 app/views/decidim/proposals/admin/proposals_imports/new.html.erb
decidim-proposals-0.16.0 app/views/decidim/proposals/admin/proposals_imports/new.html.erb
decidim-proposals-0.15.2 app/views/decidim/proposals/admin/proposals_imports/new.html.erb
decidim-proposals-0.15.1 app/views/decidim/proposals/admin/proposals_imports/new.html.erb
decidim-proposals-0.15.0 app/views/decidim/proposals/admin/proposals_imports/new.html.erb
decidim-proposals-0.14.4 app/views/decidim/proposals/admin/proposals_imports/new.html.erb
decidim-proposals-0.14.3 app/views/decidim/proposals/admin/proposals_imports/new.html.erb
decidim-proposals-0.14.2 app/views/decidim/proposals/admin/proposals_imports/new.html.erb
decidim-proposals-0.14.1 app/views/decidim/proposals/admin/proposals_imports/new.html.erb
decidim-proposals-0.13.1 app/views/decidim/proposals/admin/proposals_imports/new.html.erb
decidim-proposals-0.12.2 app/views/decidim/proposals/admin/proposals_imports/new.html.erb
decidim-proposals-0.13.0 app/views/decidim/proposals/admin/proposals_imports/new.html.erb
decidim-proposals-0.12.1 app/views/decidim/proposals/admin/proposals_imports/new.html.erb
decidim-proposals-0.13.0.pre1 app/views/decidim/proposals/admin/proposals_imports/new.html.erb
decidim-proposals-0.12.0 app/views/decidim/proposals/admin/proposals_imports/new.html.erb
decidim-proposals-0.11.2 app/views/decidim/proposals/admin/proposals_imports/new.html.erb
decidim-proposals-0.12.0.pre app/views/decidim/proposals/admin/proposals_imports/new.html.erb
decidim-proposals-0.11.1 app/views/decidim/proposals/admin/proposals_imports/new.html.erb
decidim-proposals-0.11.0.pre1 app/views/decidim/proposals/admin/proposals_imports/new.html.erb