-
-
Notifications
You must be signed in to change notification settings - Fork 729
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
1 parent
7990de8
commit 65dec6f
Showing
4 changed files
with
33 additions
and
15 deletions.
There are no files selected for viewing
5 changes: 0 additions & 5 deletions
5
app/overrides/spree/admin/shared/_product_tabs/add_distributions.html.haml.deface
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
app/overrides/spree/admin/shared/_product_tabs/add_group_buy.html.haml.deface
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
app/overrides/spree/admin/shared/_product_tabs/add_seo.html.haml.deface
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |