Sha256: bfe5f97060135c80d60fcfb652818ac7db3d7099547f4716ea8c30b92a17130d

Contents?: true

Size: 1.72 KB

Versions: 7

Compression:

Stored size: 1.72 KB

Contents

<%- @page_title = "GBL♦Admin - Imports" %>

<div class="row mb-2">
  <div class="col">
    <h1 style="width:100%;">
      Imports
      <%= link_to '+ New Import', new_admin_import_path, { class: 'btn btn-primary float-right' } %>
    </h1>

    <h6>
      <span class='float-left mt-3'>
        <%== pagy_info(@pagy) %>
      </span>
      <span class='float-right'>
        <%== pagy_bootstrap_nav(@pagy) %>
      </span>
    </h6>

    <table class="table table-striped table-bordered sortable">
      <thead class="thead-dark">
        <tr>
          <th class="header">Name</th>
          <th class="header">Filename</th>
          <th class="header">Source</th>
          <th class="header">Description</th>
          <th class="header">Row count</th>
          <th class="header">Date</th>
          <th class="header" colspan="3">Actions</th>
        </tr>
      </thead>

      <tbody>
        <% @imports.each do |import| %>
          <tr>
            <td><%= import.name %></td>
            <td><%= import.filename %></td>
            <td><%= import.source %></td>
            <td><%= import.description %></td>
            <td><%= import.row_count %></td>
            <td><%= import.created_at %></td>
            <td><%= link_to 'Show', admin_import_path(import) %></td>
            <td><%= link_to 'Edit', edit_admin_import_path(import) %></td>
            <td><%= link_to 'Destroy', admin_import_path(import), method: :delete, data: { confirm: 'Are you sure?' } %></td>
          </tr>
        <% end %>
      </tbody>
    </table>

    <h6>
      <span class='float-left mt-3'>
        <%== pagy_info(@pagy) %>
      </span>
      <span class='float-right'>
        <%== pagy_bootstrap_nav(@pagy) %>
      </span>
    </h6>
  </div>
</div>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
geoblacklight_admin-0.6.3 app/views/admin/imports/index.html.erb
geoblacklight_admin-0.6.2 app/views/admin/imports/index.html.erb
geoblacklight_admin-0.6.1 app/views/admin/imports/index.html.erb
geoblacklight_admin-0.6.0 app/views/admin/imports/index.html.erb
geoblacklight_admin-0.5.1 app/views/admin/imports/index.html.erb
geoblacklight_admin-0.5.0 app/views/admin/imports/index.html.erb
geoblacklight_admin-0.4.2 app/views/admin/imports/index.html.erb