summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorspag <spag@golwen.net>2013-01-19 09:09:25 +0100
committerspag <spag@golwen.net>2013-01-19 09:09:25 +0100
commit4c141a6d1c20745addd135d1cdd6844b90a20c33 (patch)
treee1c7a9546d8f8621cc5235f10fc3ce4d8375db5a
parent6defcadbb9500efbfcf487c384ad41f958f5e46f (diff)
move actions added
-rw-r--r--app/controllers/route_elements_controller.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/app/controllers/route_elements_controller.rb b/app/controllers/route_elements_controller.rb
index 699fcc6..c4e4c1a 100644
--- a/app/controllers/route_elements_controller.rb
+++ b/app/controllers/route_elements_controller.rb
@@ -44,6 +44,16 @@ class RouteElementsController < ApplicationController
redirect_to call_route_route_elements_path(@call_route), :notice => t('route_elements.controller.successfuly_destroyed')
end
+ def move_higher
+ @route_element.move_higher
+ redirect_to :back
+ end
+
+ def move_lower
+ @route_element.move_lower
+ redirect_to :back
+ end
+
private
def spread_breadcrumbs
add_breadcrumb t("call_routes.index.page_title"), call_routes_path