diff --git a/back-office/app/controllers/items_controller.rb b/back-office/app/controllers/items_controller.rb index 132550c..7e1e3d8 100644 --- a/back-office/app/controllers/items_controller.rb +++ b/back-office/app/controllers/items_controller.rb @@ -37,4 +37,12 @@ class ItemsController < ApplicationController ["Import items", "import_items"], ["Update prices", "update_prices"] ] end + + def export_import_post + @tasks = [ ["Validate items", "validate_items"], + ["Import items", "import_items"], + ["Update prices", "update_prices"] ] + + render :template => "items/export_import" + end end diff --git a/back-office/config/routes.rb b/back-office/config/routes.rb index e4ada9a..30adfc0 100644 --- a/back-office/config/routes.rb +++ b/back-office/config/routes.rb @@ -21,6 +21,7 @@ Rails.application.routes.draw do post 'check_availability' => 'items#check_availability', constraints: CheckItemsConstraint post 'check_availability' => 'items#delete_items', constraints: DeleteItemsConstraint get 'export_import' + post 'export_import' => 'items#export_import_post' end as_routes end