Sha256: 6d7d13eddec22a1bb5d353ab6e33592d6621e801fec17e1906119223c3bc084f
Contents?: true
Size: 1.66 KB
Versions: 21
Compression:
Stored size: 1.66 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 colspan="2"><%= Spree.t(: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? %> <%= cycle('odd', 'even')%>"> <td class="no-border"> <% if can? :update_positions, Spree::Variant %> <span class="handle"></span> <% end %> </td> <td><%= variant.options_text %></td> <td class="align-center"><%= variant.display_price.to_html %></td> <td class="align-center"><%= 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) %> <%= link_to_delete(variant, :no_text => true) unless variant.deleted? %> <% end %> </td> </tr> <% end %> <% if variants.empty? %> <tr><td colspan="4"><%= Spree.t(:none) %></td></tr> <% end %> </tbody> </table> <%= paginate variants, theme: "solidus_admin" %>
Version data entries
21 entries across 21 versions & 1 rubygems