Controller init
This commit is contained in:
parent
2fdfdeafa2
commit
cab4614a8f
|
@ -0,0 +1,21 @@
|
||||||
|
class Panel::Archive::BackEnd::ArchiveFilesController < OrbitBackendController
|
||||||
|
# before_filter :for_app_manager,:except => [:index,:show]
|
||||||
|
include OrbitControllerLib::DivisionForDisable
|
||||||
|
|
||||||
|
before_filter :force_order_for_visitor,:only=>[:index]
|
||||||
|
before_filter :force_order_for_user,:except => [:index]
|
||||||
|
|
||||||
|
before_filter :for_app_sub_manager,:except => [:index]
|
||||||
|
before_filter :only => [ :new,:edit,:update,:create] do |controller|
|
||||||
|
controller.get_categorys('ArchiveFileCategory')
|
||||||
|
end
|
||||||
|
|
||||||
|
def new
|
||||||
|
@vocab = DictionaryVocab.new
|
||||||
|
|
||||||
|
respond_to do |format|
|
||||||
|
format.html # new.html.erb
|
||||||
|
format.xml { render xml: @vocab}
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
|
@ -1,8 +1,8 @@
|
||||||
Rails.application.routes.draw do
|
Rails.application.routes.draw do
|
||||||
namespace :panel do
|
namespace :panel do
|
||||||
namespace :archive do
|
namespace :dicitonary do
|
||||||
namespace :back_end do
|
namespace :back_end do
|
||||||
resources :archive_files do
|
resources :dicitonary_vocabs do
|
||||||
collection do
|
collection do
|
||||||
get 'delete'
|
get 'delete'
|
||||||
end
|
end
|
||||||
|
|
|
@ -61,9 +61,9 @@ module Dictionary
|
||||||
:available_for => [:all]
|
:available_for => [:all]
|
||||||
|
|
||||||
context_link 'add',
|
context_link 'add',
|
||||||
:link_path=>"new_panel_archive_back_end_archive_file_path" ,
|
:link_path => "new_panel_dicationary_back_end_dictionary_vocab_path",
|
||||||
:priority => 2,
|
:priority => 2,
|
||||||
:active_for_action=>{:archive_files=>:new},
|
:active_for_action => { :dictionary_vocabs => :new },
|
||||||
:available_for => [:sub_manager]
|
:available_for => [:sub_manager]
|
||||||
|
|
||||||
context_link 'categories',
|
context_link 'categories',
|
||||||
|
|
Loading…
Reference in New Issue