Post action for export/import added

This commit is contained in:
Adam
2015-12-30 22:58:14 +01:00
parent 1dcd8d404e
commit d73b8ca8d8
2 changed files with 9 additions and 0 deletions

View File

@@ -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

View File

@@ -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