Sha256: 6268d50f6c4104946fb18c387b41dc55c01d3facc0aacf77c00f899751944b94

Contents?: true

Size: 1.81 KB

Versions: 7

Compression:

Stored size: 1.81 KB

Contents

<%= decidim_form_for(@form, url: component_imports_path, class: "form grid-container") do |form| %>
  <div class="card">
    <div class="card-divider">
      <h2 class="card-title flex--sbc">
        <div class="flex--cc flex-gap--1">
          <div id="js-other-actions-wrapper">
            <%= link_to t(".actions.back"), manage_component_path(@current_component), class: "button hollow tiny button--simple" %>
          </div>
        </div>
      </h2>
    </div>
    <div class="card-section">
      <div class="row column">
        <%=
          form.select :creator,
          @form.creators.map { |m| [t("decidim.admin.imports.creators.#{m[:name]}"), m[:creator]] },
          { prompt: true }
        %>
      </div>
      <% if current_organization.user_groups_enabled? && Decidim::UserGroups::ManageableUserGroups.for(current_user).verified.any? %>
        <div class="field">
          <%= user_group_select_field form, :user_group_id %>
        </div>
      <% end %>
      <div class="grid-x">
        <div class="cell">
          <fieldset>
            <legend>
              <%= t(".file_legend", valid_mime_types: mime_types).html_safe %>
              <div class="creator-guidances">
                <% @form.creators.each do |creator| %>
                  <%= content_tag :div, class: "guidance creator-#{creator[:name]}" do %>
                    <% t("decidim.admin.imports.help.#{creator[:name]}") %>
                  <% end %>
                <% end %>
              </div>
            </legend>
            <div class="row column">
              <%= form.upload :file, optional: false, help_i18n_scope: "decidim.admin.forms.file_help.import" %>
            </div>
          </fieldset>
        </div>
      </div>
    </div>
  </div>
  <div class="grid-x align-center mt-sm">
    <%= form.submit t(".import") %>
  </div>
<% end -%>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
decidim-admin-0.25.2 app/views/decidim/admin/imports/new.html.erb
decidim-admin-0.25.1 app/views/decidim/admin/imports/new.html.erb
decidim-admin-0.25.0 app/views/decidim/admin/imports/new.html.erb
decidim-admin-0.25.0.rc4 app/views/decidim/admin/imports/new.html.erb
decidim-admin-0.25.0.rc3 app/views/decidim/admin/imports/new.html.erb
decidim-admin-0.25.0.rc2 app/views/decidim/admin/imports/new.html.erb
decidim-admin-0.25.0.rc1 app/views/decidim/admin/imports/new.html.erb