dhl: Start with some empty stuff for a DHL tab
This tab will allow you to to manage coupon codes of DHL.
This commit is contained in:
parent
86b76a198e
commit
fdd048d1e3
|
@ -0,0 +1,3 @@
|
||||||
|
class Admin::DhlsController < Admin::BaseController
|
||||||
|
respond_to :html
|
||||||
|
end
|
|
@ -0,0 +1,4 @@
|
||||||
|
---
|
||||||
|
en:
|
||||||
|
dhl: DHL
|
||||||
|
dhls: DHL
|
|
@ -1,3 +1,10 @@
|
||||||
Rails.application.routes.draw do
|
Rails.application.routes.draw do
|
||||||
# Add your extension routes here
|
# Add your extension routes here
|
||||||
|
namespace :admin do
|
||||||
|
resources :dhls do
|
||||||
|
resources :coupons
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
match "/admin/dhl" => 'admin/dhls#index', :as => :admin
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
class SysmocomDhlHooks < Spree::ThemeSupport::HookListener
|
class SysmocomDhlHooks < Spree::ThemeSupport::HookListener
|
||||||
# custom hooks go here
|
# custom hooks go here
|
||||||
end
|
insert_after :admin_tabs do
|
||||||
|
"<%= tab(:dhls) %>"
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
Loading…
Reference in New Issue