diff --git a/vendor/built_in_modules/dictionary/app/controllers/panel/dictionary/back_end/dictionary_vocabs_controller.rb b/vendor/built_in_modules/dictionary/app/controllers/panel/dictionary/back_end/dictionary_vocabs_controller.rb new file mode 100644 index 000000000..e31efe3b7 --- /dev/null +++ b/vendor/built_in_modules/dictionary/app/controllers/panel/dictionary/back_end/dictionary_vocabs_controller.rb @@ -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 \ No newline at end of file diff --git a/vendor/built_in_modules/dictionary/config/routes.rb b/vendor/built_in_modules/dictionary/config/routes.rb index b620dbee8..9a48c281c 100644 --- a/vendor/built_in_modules/dictionary/config/routes.rb +++ b/vendor/built_in_modules/dictionary/config/routes.rb @@ -1,8 +1,8 @@ Rails.application.routes.draw do namespace :panel do - namespace :archive do + namespace :dicitonary do namespace :back_end do - resources :archive_files do + resources :dicitonary_vocabs do collection do get 'delete' end diff --git a/vendor/built_in_modules/dictionary/init.rb b/vendor/built_in_modules/dictionary/init.rb index 90c562f1b..99cc2739f 100644 --- a/vendor/built_in_modules/dictionary/init.rb +++ b/vendor/built_in_modules/dictionary/init.rb @@ -61,10 +61,10 @@ module Dictionary :available_for => [:all] context_link 'add', - :link_path=>"new_panel_archive_back_end_archive_file_path" , - :priority=>2, - :active_for_action=>{:archive_files=>:new}, - :available_for => [:sub_manager] + :link_path => "new_panel_dicationary_back_end_dictionary_vocab_path", + :priority => 2, + :active_for_action => { :dictionary_vocabs => :new }, + :available_for => [:sub_manager] context_link 'categories', :link_path=>"panel_archive_back_end_archive_file_categorys_path" ,