Sha256: c72a25d1d099dbfaedfeb6ebfe9f253f7e8c2d0f7c6b0d2d4685e86b5f0f32ed
Contents?: true
Size: 1.26 KB
Versions: 4
Compression:
Stored size: 1.26 KB
Contents
<!-- replace_contents '[data-hook="admin_products_index_rows"]' --> <%# Changed classes to new like https://github.com/spree/spree/blob/master/backend/app/views/spree/admin/stock_locations/_form.html.erb %> <td class="sku"><%= product.sku rescue '' %></td> <td class="image"><%= mini_image product, class: "thumbnail" %></td> <td> <% if try_spree_current_user && try_spree_current_user.supplier? %> <%= link_to product.try(:name), stock_admin_product_path(product)%> <% else %> <%= link_to product.try(:name), edit_admin_product_path(product) %> <% end %> </td> <td><%= product.display_price.to_html rescue '' %></td> <td class="actions" data-hook="admin_products_index_row_actions"> <% if try_spree_current_user && try_spree_current_user.supplier? %> <%= link_to 'SM', stock_admin_product_path(product), title:'Stock Management', class: 'btn btn-default btn-sm with-tip without-textdecor' if can?(:stock, product) && !product.deleted? %> <% else %> <%= link_to_edit product, :no_text => true, :class => 'edit' if can?(:edit, product) && !product.deleted? %> <% end %> <%= link_to_clone product, :no_text => true, :class => 'clone' if can?(:clone, product) %> <%= link_to_delete product, :no_text => true if can?(:delete, product) && !product.deleted? %> </td>
Version data entries
4 entries across 4 versions & 1 rubygems