Sha256: 3ee7bce0f5cfcc770fbfdb7bcde5f8eee5bedb49cb1533b010887e8f44a92cf3

Contents?: true

Size: 1.25 KB

Versions: 3

Compression:

Stored size: 1.25 KB

Contents

<%= form_tag({:action => :create}, multipart: true, class: "form new_import") do %>
  <div class="card">
    <div class="card-divider">
      <h2 class="card-title">
        <%= t(".title") %>
        <%= render partial: "decidim/accountability/admin/shared/subnav" %>
      </h2>
    </div>

    <% unless @errors.empty? %>
      <div class="card-section">
        <div class="row column">
          <table>
            <thead>
              <tr>
                <th><%= t(".row_number") %></th>
                <th><%= t(".errors") %></th>
              </tr>
            </thead>
            <% @errors.each do |error| %>
              <tr>
                <td><%= error.first %></td>
                <td>
                  <ul>
                    <% error.last.each do |error_message| %>
                      <li><%= error_message %></li>
                    <% end %>
                  </ul>
                </td>
              </tr>
            <% end %>
          </table>
        </div>
      </div>
    <% end %>

    <div class="card-section">
      <div class="row column">
        <%= file_field_tag :csv_file %>
      </div>
    </div>
  </div>

  <div class="button--double form-general-submit">
    <%= submit_tag t(".import"), class: "button" %>
  </div>
<% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
decidim-accountability-0.1.2 app/views/decidim/accountability/admin/imports/new.html.erb
decidim-accountability-0.1.1 app/views/decidim/accountability/admin/imports/new.html.erb
decidim-accountability-0.1.0 app/views/decidim/accountability/admin/imports/new.html.erb