Sha256: 499a9a2546bf6a41d1eb62cf2c88d1be9b831a1bcfe9495ecc021980d931b597

Contents?: true

Size: 1.69 KB

Versions: 88

Compression:

Stored size: 1.69 KB

Contents

<%= render layout: "/layouts/#{Rails.application.config.apidae_layout}" do |styles| %>
    <div id="apidae_header" class="<%= styles[:header] %>">
      <%= link_to 'Retour', root_path, class: styles[:back] %>
      <h1 class="<%= styles[:h1] %>">Apidae - Sélections</h1>
    </div>
    <div class="<%= styles[:wrapper] %>">
      <div class="<%= styles[:body] %>">
        <table id="apidae_selections" class="<%= styles[:table] %>">
          <thead class="<%= styles[:table_head] %>">
          <tr>
            <th>Label</th>
            <th>Reference</th>
            <th>Identifiant</th>
            <th>Objets</th>
            <th></th>
          </tr>
          </thead>
          <tbody class="<%= styles[:table_body] %>">
          <% @selections.each do |selection| %>
              <tr>
                <td><%= selection.label %></td>
                <td><%= selection.reference %></td>
                <td><%= selection.apidae_id %></td>
                <td><%= link_to selection.objects.count, selection_objects_path(selection) %></td>
                <td><%= link_to 'Rafraîchir', apidae.refresh_selection_path(selection), method: :post,
                                data: {confirm: 'Voulez-vous vraiment rafraîchir cette sélection ? Les données existantes seront écrasées.'} %></td>
              </tr>
          <% end %>
          <% if @selections.empty? %>
            <tr>
              <td colspan="5">Aucune sélection importée pour le moment.</td>
            </tr>
          <% end %>
          </tbody>
        </table>
      </div>
    </div>
<% end %>
<script>
    document.addEventListener("DOMContentLoaded", function(event) {
      apidaeEngineCallback("selections");
    });
</script>

Version data entries

88 entries across 88 versions & 1 rubygems

Version Path
apidae-1.4.13 app/views/apidae/selections/index.html.erb
apidae-1.4.12 app/views/apidae/selections/index.html.erb
apidae-1.4.11 app/views/apidae/selections/index.html.erb
apidae-1.4.10 app/views/apidae/selections/index.html.erb
apidae-1.4.9 app/views/apidae/selections/index.html.erb
apidae-1.4.8 app/views/apidae/selections/index.html.erb
apidae-1.4.7 app/views/apidae/selections/index.html.erb
apidae-1.4.6 app/views/apidae/selections/index.html.erb
apidae-1.4.5 app/views/apidae/selections/index.html.erb
apidae-1.4.4 app/views/apidae/selections/index.html.erb
apidae-1.4.3 app/views/apidae/selections/index.html.erb
apidae-1.2.35 app/views/apidae/selections/index.html.erb
apidae-1.2.34 app/views/apidae/selections/index.html.erb
apidae-1.2.33 app/views/apidae/selections/index.html.erb
apidae-1.4.2 app/views/apidae/selections/index.html.erb
apidae-1.4.1 app/views/apidae/selections/index.html.erb
apidae-1.4.0 app/views/apidae/selections/index.html.erb
apidae-1.2.32 app/views/apidae/selections/index.html.erb
apidae-1.2.31 app/views/apidae/selections/index.html.erb
apidae-1.2.30 app/views/apidae/selections/index.html.erb