Sha256: 3ebe67edb20fceda1ee892379be8a44c733473119d5172ee12d74d2e42aa157d

Contents?: true

Size: 1.04 KB

Versions: 4

Compression:

Stored size: 1.04 KB

Contents

<div class="table-responsive border rounded bg-white">
  <table class="table table-condensed border rounded">
    <thead class="text-muted">
      <tr data-hook="available_header">
        <th><%= Spree.t(:name) %></th>
        <th class="actions"></th>
      </tr>
    </thead>
    <tbody>
      <% @prototypes.each do |prototype| %>
        <tr id="row_<%= prototype.id %>" data-hook="available_row">
          <td><%= prototype.name %></td>
          <td class="actions">
            <span class="d-flex justify-content-end">
              <%= link_to_with_icon 'save.svg',
                Spree.t(:select),
                select_admin_prototype_url(prototype),
                class: 'btn btn-primary btn-sm ajax select_properties_from_prototype',
                no_text: true %>
            </span>
          </td>
        </tr>
      <% end %>
      <% if @prototypes.empty? %>
        <tr data-hook="available_none">
          <td colspan="2">
            <% Spree.t(:none) %>.
          </td>
        </tr>
      <% end %>
    </tbody>
  </table>
</div>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
spree_backend-4.8.4 app/views/spree/admin/prototypes/_prototypes.html.erb
spree_backend-4.8.3 app/views/spree/admin/prototypes/_prototypes.html.erb
spree_backend-4.8.2 app/views/spree/admin/prototypes/_prototypes.html.erb
spree_backend-4.8.1 app/views/spree/admin/prototypes/_prototypes.html.erb