diff --git a/backend/app/views/spree/admin/prices/edit.html.erb b/backend/app/views/spree/admin/prices/edit.html.erb index 5a7b78bf500..8d4cffa9c32 100644 --- a/backend/app/views/spree/admin/prices/edit.html.erb +++ b/backend/app/views/spree/admin/prices/edit.html.erb @@ -1,4 +1,6 @@ <%= render 'spree/admin/shared/product_tabs', current: 'Prices' %> +<% admin_breadcrumb(link_to(plural_resource_name(Spree::Price), spree.admin_product_prices_url(@product))) %> +<% admin_breadcrumb(Spree.t('actions.edit')) %> <%= form_for @price, url: spree.admin_product_price_path(@product, @price) do |f| %>
diff --git a/backend/app/views/spree/admin/prices/index.html.erb b/backend/app/views/spree/admin/prices/index.html.erb index f5066eed15c..ea6ecda4f91 100644 --- a/backend/app/views/spree/admin/prices/index.html.erb +++ b/backend/app/views/spree/admin/prices/index.html.erb @@ -1,8 +1,9 @@ <%= render 'spree/admin/shared/product_tabs', current: 'Prices' %> +<% admin_breadcrumb(plural_resource_name(Spree::Price)) %> <% content_for :page_actions do %> <% end if can?(:create, Spree::Product) %> diff --git a/backend/app/views/spree/admin/prices/new.html.erb b/backend/app/views/spree/admin/prices/new.html.erb index 07c35931f6f..979ecdf0d59 100644 --- a/backend/app/views/spree/admin/prices/new.html.erb +++ b/backend/app/views/spree/admin/prices/new.html.erb @@ -1,3 +1,7 @@ +<%= render 'spree/admin/shared/product_tabs', current: 'Prices' %> +<% admin_breadcrumb(link_to(plural_resource_name(Spree::Price), spree.admin_product_prices_url(@product))) %> +<% admin_breadcrumb(Spree.t('actions.new')) %> + <%= form_for [:admin, @product, @product.prices.build] do |f| %>
<%= t('.new_price') %> diff --git a/backend/app/views/spree/admin/prices/new.js.erb b/backend/app/views/spree/admin/prices/new.js.erb deleted file mode 100644 index 29df0e058b7..00000000000 --- a/backend/app/views/spree/admin/prices/new.js.erb +++ /dev/null @@ -1,2 +0,0 @@ -$(".js-content-below-tabs").html('<%= escape_javascript(render template: 'spree/admin/prices/new', formats: [:html], handlers: [:erb]) %>'); -$(".js-content-below-tabs .select2").select2();