orbit-basic/vendor/built_in_modules/member_staff/init.rb

75 lines
2.9 KiB
Ruby
Raw Normal View History

module MemberStaff
OrbitApp.registration "MemberStaff",:type=> 'ModuleApp' do
module_label 'member_staff.member'
base_url File.expand_path File.dirname(__FILE__)
# personal_plugin :enable => true,:path=>"panel/member/plugin/profile",:i18n=>'admin.member'
version "0.1"
organization "Rulingcom"
author "RD dep"
intro "I am intro"
update_info 'some update_info'
front_end do
app_page 'member_staff_lists' do
frontend_i18n "member_staff.frontend.member"
style ["Single","Two","List"]
end
end
# widgets do
# default_widget do
# query 'User.all'
# enable ['typeA']
# link_field :member_list_category_with_title,{:method => 'panel_member_front_end_member_lists_path',:args=>{:category_id => [:member_list_category,:id]}}
# link_field :last_name,{:method => 'panel_member_front_end_member_list_path',:args=>:self}
# link_field :first_name,{:method => 'panel_member_front_end_member_list_path',:args=>:self}
# link_to_more 'panel_member_front_end_qas_path',:title_i18n=> 'member.default_widget.to_more'
# end
# categories_query 'RoleStatus.where(:role_id=> RoleStatus.get_role_data("staff") )'
# tags_query 'FaqTag.all'
# customize_widget "index" do
# widget_i18n "member.widget.index"
# style ["1"]
# end
# end
# side_bar do
# head_label_i18n 'member.member',:icon_class=>"icons-help"
# available_for [:admin,:guest,:manager,:sub_manager]
# active_for_controllers ({:private=>['member_lists', 'member_list_categorys']})
# active_for_object_auth ['MemberListCategory']
# head_link_path "panel_member_back_end_qas_path"
# context_link 'list_',
# :link_path=>"panel_member_back_end_qas_path" ,
# :priority=>1,
# :active_for_action=>{:member_lists=>:index},
# :available_for => [:all]
# context_link 'add',
# :link_path=>"new_panel_member_back_end_qa_path" ,
# :priority=>2,
# :active_for_action=>{:member_lists=>:new},
# :available_for => [:sub_manager]
# context_link 'categories',
# :link_path=>"panel_member_back_end_qa_categorys_path" ,
# :priority=>3,
# :active_for_action=>{:qa_categorys=>:index},
# :available_for => [:manager]
# context_link 'tags',
# :link_path=>"panel_member_back_end_tags_path" ,
# :priority=>4,
# # :active_for_action=>{:bulletin_categorys=>:index},
# :available_for => [:manager]
# end
end
end