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:
Holger Hans Peter Freyther 2012-03-17 13:27:06 +01:00
parent 86b76a198e
commit fdd048d1e3
5 changed files with 18 additions and 1 deletions

View File

@ -0,0 +1,3 @@
class Admin::DhlsController < Admin::BaseController
respond_to :html
end

View File

4
config/locales/en.yml Normal file
View File

@ -0,0 +1,4 @@
---
en:
dhl: DHL
dhls: DHL

View File

@ -1,3 +1,10 @@
Rails.application.routes.draw do
# Add your extension routes here
namespace :admin do
resources :dhls do
resources :coupons
end
end
match "/admin/dhl" => 'admin/dhls#index', :as => :admin
end

View File

@ -1,3 +1,6 @@
class SysmocomDhlHooks < Spree::ThemeSupport::HookListener
# custom hooks go here
end
insert_after :admin_tabs do
"<%= tab(:dhls) %>"
end
end