Sha256: 194961de34a84c7f47d7a4a037d1e39da1d0cdc2fa40e7769ea9f3d4fc7c6ed6

Contents?: true

Size: 1.57 KB

Versions: 88

Compression:

Stored size: 1.57 KB

Contents

<%= paginate variants, theme: "solidus_admin" %>

<table class="index sortable" data-sortable-link="<%= update_positions_admin_product_variants_path(@product) %>">
  <colgroup>
    <col style="width: 5%" />
    <col style="width: 25%" />
    <col style="width: 20%" />
    <col style="width: 20%" />
    <col style="width: 15%" />
    <col style="width: 15%" />
  </colgroup>
  <thead data-hook="variants_header">
    <tr>
      <th></th>
      <th><%= t('spree.options') %></th>
      <th><%= Spree::Variant.human_attribute_name(:price) %></th>
      <th><%= Spree::Variant.human_attribute_name(:sku) %></th>
      <th class="actions"></th>
    </tr>
  </thead>
  <tbody>
  <% variants.each do |variant| %>
    <tr id="<%= spree_dom_id variant %>" data-hook="variants_row" class="<%= "deleted" if variant.deleted? %>">
      <td>
        <% if can? :update_positions, Spree::Variant %>
          <span class="handle"></span>
        <% end %>
      </td>
      <td><%= variant.options_text %></td>
      <td><%= variant.display_price.to_html %></td>
      <td><%= variant.sku %></td>
      <td class="actions">
        <% if can?(:update, variant) %>
          <%= link_to_edit(variant, no_text: true) unless variant.deleted? %>
        <% end %>
        <% if can?(:destroy, variant) %>
          &nbsp;
          <%= link_to_delete(variant, no_text: true) unless variant.deleted? %>
        <% end %>
      </td>
    </tr>
    <% end %>
    <% if variants.empty? %>
      <tr><td colspan="4"><%= t('spree.none') %></td></tr>
    <% end %>
  </tbody>
</table>
<%= paginate variants, theme: "solidus_admin" %>

Version data entries

88 entries across 88 versions & 2 rubygems

Version Path
solidus_backend-3.0.2 app/views/spree/admin/variants/_table.html.erb
solidus_backend-2.10.5 app/views/spree/admin/variants/_table.html.erb
solidus_backend-2.11.10 app/views/spree/admin/variants/_table.html.erb
solidus_backend-3.0.1 app/views/spree/admin/variants/_table.html.erb
solidus_backend-3.0.0 app/views/spree/admin/variants/_table.html.erb
solidus_backend-2.11.9 app/views/spree/admin/variants/_table.html.erb
solidus_backend-2.11.8 app/views/spree/admin/variants/_table.html.erb
solidus_backend-2.11.7 app/views/spree/admin/variants/_table.html.erb
solidus_backend-2.11.6 app/views/spree/admin/variants/_table.html.erb
solidus_backend-3.0.0.rc2 app/views/spree/admin/variants/_table.html.erb
solidus_backend-2.11.5 app/views/spree/admin/variants/_table.html.erb
solidus_backend-2.11.4 app/views/spree/admin/variants/_table.html.erb
solidus_backend-2.11.3 app/views/spree/admin/variants/_table.html.erb
solidus_backend-2.11.2 app/views/spree/admin/variants/_table.html.erb
solidus_backend-2.11.1 app/views/spree/admin/variants/_table.html.erb
solidus_backend-2.10.3 app/views/spree/admin/variants/_table.html.erb
solidus_backend-2.11.0 app/views/spree/admin/variants/_table.html.erb
solidus_backend-2.10.2 app/views/spree/admin/variants/_table.html.erb
solidus_backend-2.9.6 app/views/spree/admin/variants/_table.html.erb
solidus_backend-2.8.6 app/views/spree/admin/variants/_table.html.erb