2016-06-29 06:57:45 +00:00
|
|
|
module Seminar
|
|
|
|
class Engine < ::Rails::Engine
|
|
|
|
initializer "seminar" do
|
|
|
|
OrbitApp.registration "Seminar", :type => "ModuleApp" do
|
|
|
|
module_label "seminar.seminar"
|
|
|
|
base_url File.expand_path File.dirname(__FILE__)
|
|
|
|
authorizable
|
|
|
|
categorizable
|
|
|
|
frontend_enabled
|
|
|
|
data_count 1..20
|
2021-11-18 09:59:20 +00:00
|
|
|
widget_methods ["widget"]
|
|
|
|
widget_settings [{"data_count"=>30}]
|
2016-06-29 06:57:45 +00:00
|
|
|
side_bar do
|
|
|
|
head_label_i18n 'seminar.seminar', icon_class: "icon-globe"
|
2021-03-17 07:33:31 +00:00
|
|
|
available_for "users"
|
2016-06-29 06:57:45 +00:00
|
|
|
active_for_controllers (['admin/seminars'])
|
|
|
|
head_link_path "admin_seminars_path"
|
|
|
|
|
|
|
|
context_link 'list_',
|
|
|
|
:link_path=>"admin_seminars_path" ,
|
|
|
|
:priority=>1,
|
|
|
|
:active_for_action=>{'admin/seminars'=>'index'},
|
2021-03-17 07:33:31 +00:00
|
|
|
:available_for => 'users'
|
2016-06-29 06:57:45 +00:00
|
|
|
context_link 'new_',
|
|
|
|
:link_path=>"new_admin_seminar_path" ,
|
|
|
|
:priority=>2,
|
|
|
|
:active_for_action=>{'admin/seminars'=>'new'},
|
2023-03-17 03:30:11 +00:00
|
|
|
:available_for => 'sub_managers'
|
2016-06-29 06:57:45 +00:00
|
|
|
context_link 'categories',
|
|
|
|
:link_path=>"admin_module_app_categories_path" ,
|
|
|
|
:link_arg=>"{:module_app_id=>ModuleApp.find_by(:key=>'seminar').id}",
|
|
|
|
:priority=>3,
|
|
|
|
:active_for_action=>{'admin/seminars'=>'categories'},
|
|
|
|
:active_for_category => 'Seminar',
|
|
|
|
:available_for => 'managers'
|
|
|
|
context_link 'seminar.set_seminar_items',
|
|
|
|
:link_path=>"admin_seminar_items_path" ,
|
2023-03-17 03:30:11 +00:00
|
|
|
:priority=>4,
|
2016-06-29 06:57:45 +00:00
|
|
|
:active_for_action=>{'admin/seminars'=>'seminar_items'},
|
|
|
|
:available_for => 'managers'
|
|
|
|
context_link 'seminar.set_seminar_agreements',
|
|
|
|
:link_path=>"admin_seminar_agreements_path" ,
|
2023-03-17 03:30:11 +00:00
|
|
|
:priority=>5,
|
2016-06-29 06:57:45 +00:00
|
|
|
:active_for_action=>{'admin/seminars'=>'seminar_agreements'},
|
|
|
|
:available_for => 'managers'
|
2021-03-17 07:33:31 +00:00
|
|
|
context_link 'seminar.enquiry_for_applicants',
|
|
|
|
:link_path=>"admin_seminar_enquiry_for_applicants_path" ,
|
2023-03-17 03:30:11 +00:00
|
|
|
:priority=>6,
|
2021-03-17 07:33:31 +00:00
|
|
|
:active_for_action=>{'admin/seminars'=>'enquiry_for_applicants'},
|
|
|
|
:available_for => 'users'
|
2016-06-29 06:57:45 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|