2017-05-18 12:12:35 +00:00
|
|
|
module MemberCounselor
|
|
|
|
class Engine < ::Rails::Engine
|
|
|
|
isolate_namespace MemberCounselor
|
|
|
|
end
|
|
|
|
end
|
|
|
|
module MemberCounselor
|
|
|
|
class Engine < ::Rails::Engine
|
|
|
|
initializer "member_counselor" do
|
|
|
|
OrbitApp.registration "MemberCounselor", :type => "ModuleApp" do
|
|
|
|
module_label "member_counselor.member_counselor"
|
|
|
|
base_url File.expand_path File.dirname(__FILE__)
|
|
|
|
taggable "CounselorFile"
|
|
|
|
frontend_enabled
|
|
|
|
data_count 1..30
|
|
|
|
set_keyword_contstraints ["/cuser/"]
|
|
|
|
side_bar do
|
|
|
|
head_label_i18n 'member_counselor.member_counselor', icon_class: "icons-upload"
|
|
|
|
available_for "admin"
|
|
|
|
active_for_controllers (['admin/member_counselors'])
|
|
|
|
head_link_path "uploads_admin_member_counselors_path"
|
|
|
|
|
2017-06-29 08:06:30 +00:00
|
|
|
context_link 'member_counselor.uploads',
|
2017-05-18 12:12:35 +00:00
|
|
|
:link_path=>"uploads_admin_member_counselors_path" ,
|
|
|
|
:priority=>1,
|
|
|
|
:active_for_action=>{'admin/member_counselors'=>"uploads"},
|
|
|
|
:available_for => 'admin'
|
|
|
|
|
2017-06-29 08:06:30 +00:00
|
|
|
context_link 'member_counselor.results',
|
|
|
|
:link_path=>"results_admin_member_counselors_path" ,
|
|
|
|
:priority=>1,
|
|
|
|
:active_for_action=>{'admin/member_counselors'=>"results"},
|
|
|
|
:available_for => 'admin'
|
|
|
|
|
|
|
|
context_link 'member_counselor.records',
|
|
|
|
:link_path=>"records_admin_member_counselors_path" ,
|
|
|
|
:priority=>1,
|
|
|
|
:active_for_action=>{'admin/member_counselors'=>"records"},
|
|
|
|
:available_for => 'admin'
|
|
|
|
|
2017-05-18 12:12:35 +00:00
|
|
|
context_link 'member_counselor.all_members',
|
|
|
|
:link_path=>"admin_member_counselors_path" ,
|
|
|
|
:priority=>1,
|
|
|
|
:active_for_action=>{'admin/member_counselors'=>"index"},
|
|
|
|
:available_for => 'admin'
|
|
|
|
|
|
|
|
context_link 'member_counselor.new_user',
|
|
|
|
:link_path=>"new_admin_member_counselor_path" ,
|
|
|
|
:priority=>2,
|
|
|
|
:active_for_action=>{'admin/member_counselors'=>"new"},
|
|
|
|
:available_for => 'admin'
|
|
|
|
|
|
|
|
context_link 'tags',
|
|
|
|
:link_path=>"admin_module_app_tags_path" ,
|
|
|
|
:link_arg=>"{:module_app_id=>ModuleApp.find_by(:key=>'member_counselor').id}",
|
|
|
|
:priority=>5,
|
|
|
|
:active_for_action=>{'admin/member_counselors'=>'tags'},
|
|
|
|
:active_for_tag => 'member_counselors',
|
|
|
|
:available_for => 'admin'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|