Skip to content

Commit

Permalink
De-deface product tabs
Browse files Browse the repository at this point in the history
We ignore product distrbiutions as it will be deleted soon and we do not include stock management from v2 as we will only use the variants edit page to manage on_hand and on_demand
  • Loading branch information
luisramos0 committed Mar 17, 2019
1 parent 7990de8 commit 65dec6f
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 15 deletions.

This file was deleted.

This file was deleted.

This file was deleted.

33 changes: 33 additions & 0 deletions app/views/spree/admin/shared/_product_tabs.html.haml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
= content_for :page_title do
= Spree.t(:editing_product)
= "\"#{@product.name}\""

= content_for :sidebar_title do
%span.sku
= @product.sku

= content_for :sidebar do
%nav.menu
%ul
- if can?(:admin, Spree::Product)
- klass = current == 'Product Details' ? 'active' : ''
%li{:class => klass}
= link_to_with_icon 'icon-edit', Spree.t(:product_details), edit_admin_product_url(@product)
- if can?(:admin, Spree::Image)
- klass = current == 'Images' ? 'active' : ''
%li{:class => klass}
= link_to_with_icon 'icon-picture', Spree.t(:images), admin_product_images_url(@product)
- if can?(:admin, Spree::Variant)
- klass = current == 'Variants' ? 'active' : ''
%li{:class => klass}
= link_to_with_icon 'icon-th-large', Spree.t(:variants), admin_product_variants_url(@product)
- if can?(:admin, Spree::ProductProperty)
- klass = current == 'Product Properties' ? 'active' : ''
%li{:class => klass}
= link_to_with_icon 'icon-tasks', Spree.t(:product_properties), admin_product_product_properties_url(@product)
- klass = current == 'Group Buy Options' ? 'active' : ''
%li{:class => klass}
= link_to_with_icon 'icon-tasks', t('admin.products.group_buy_options'), group_buy_options_admin_product_url(@product)
- klass = current == t(:Search) ? 'active' : ''
%li{:class => klass}
= link_to_with_icon 'icon-tasks', t(:Search), seo_admin_product_url(@product)

0 comments on commit 65dec6f

Please sign in to comment.