diff --git a/app/controllers/admin/products_v3_controller.rb b/app/controllers/admin/products_v3_controller.rb new file mode 100644 index 0000000000..ede851965d --- /dev/null +++ b/app/controllers/admin/products_v3_controller.rb @@ -0,0 +1,7 @@ +# frozen_string_literal: true + +module Admin + class ProductsV3Controller < Spree::Admin::BaseController + def index; end + end +end diff --git a/app/views/admin/products_v3/index.html.haml b/app/views/admin/products_v3/index.html.haml new file mode 100644 index 0000000000..00c53d0557 --- /dev/null +++ b/app/views/admin/products_v3/index.html.haml @@ -0,0 +1,9 @@ +- content_for :page_title do + = t('.header.title') +- content_for :page_actions do + %div{ :class => "toolbar" } + %ul{ :class => "actions header-action-links inline-menu" } + %li#new_product_link + = button_link_to t(:new_product), "/admin/products/new", { :icon => 'icon-plus', :id => 'admin_new_product' } + += render partial: 'spree/admin/shared/product_sub_menu' diff --git a/config/locales/en.yml b/config/locales/en.yml index 22acda77a9..66d2b07a14 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -764,7 +764,10 @@ en: images: "Images" variants: "Variants" product_properties: "Product Properties" - + products_v3: + index: + header: + title: Bulk Edit Products product_import: title: Product Import file_not_found: File not found or could not be opened diff --git a/config/routes/admin.rb b/config/routes/admin.rb index 69e2186cd0..be892dfb77 100644 --- a/config/routes/admin.rb +++ b/config/routes/admin.rb @@ -72,6 +72,9 @@ Openfoodnetwork::Application.routes.draw do constraints FeatureToggleConstraint.new(:new_products_page) do get '/new_products', to: 'products#index' end + constraints FeatureToggleConstraint.new(:admin_style_v3) do + get '/products_v3', to: 'products_v3#index' + end resources :variant_overrides do post :bulk_update, on: :collection