% content_for :page_title do %> <%= plural_resource_name(Spree::Product) %> <% end %> <% content_for :page_actions do %> <%= button_link_to Spree.t(:new_product), new_object_url, { class: "btn-success", icon: 'add', id: 'admin_new_product' } %> <% end if can?(:create, Spree::Product) %> <% content_for :table_filter do %>
<%= Spree.t(:sku) %> | <%= Spree.t(:status) %> | <%= sort_link @search,:name, Spree.t(:name), { default_order: "desc" }, {title: 'admin_products_listing_name_title'} %> | <%= sort_link @search, :master_default_price_amount, Spree.t(:master_price), {}, {title: 'admin_products_listing_price_title'} %> | ||
---|---|---|---|---|---|
<%= product.sku rescue '' %> | <%= available_status(product) %> | <%= mini_image product %> | <%= link_to product.try(:name), edit_admin_product_path(product) %> | <%= product.display_price.to_html rescue '' %> | <%= link_to_edit product, no_text: true, class: 'edit' if can?(:edit, product) && !product.deleted? %> <%= 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? %> |