first commit for seminar
This commit is contained in:
commit
52d3581130
121 files changed
+6015
No files matched your search
@@ -0,0 +1,4 @@
|
||||
require "seminar/engine"
|
||||
|
||||
module Seminar
|
||||
end
|
||||
@@ -0,0 +1,50 @@
|
||||
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
|
||||
|
||||
side_bar do
|
||||
head_label_i18n 'seminar.seminar', icon_class: "icon-globe"
|
||||
available_for "managers"
|
||||
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'},
|
||||
:available_for => 'managers'
|
||||
context_link 'new_',
|
||||
:link_path=>"new_admin_seminar_path" ,
|
||||
:priority=>2,
|
||||
:active_for_action=>{'admin/seminars'=>'new'},
|
||||
:available_for => 'managers'
|
||||
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" ,
|
||||
:priority=>3,
|
||||
:active_for_action=>{'admin/seminars'=>'seminar_items'},
|
||||
:available_for => 'managers'
|
||||
context_link 'seminar.set_seminar_agreements',
|
||||
:link_path=>"admin_seminar_agreements_path" ,
|
||||
:priority=>3,
|
||||
:active_for_action=>{'admin/seminars'=>'seminar_agreements'},
|
||||
:available_for => 'managers'
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,3 @@
|
||||
module Seminar
|
||||
VERSION = "0.0.1"
|
||||
end
|
||||
@@ -0,0 +1,4 @@
|
||||
# desc "Explaining what the task does"
|
||||
# task :seminar do
|
||||
# # Task goes here
|
||||
# end
|
||||
Reference in new issue
Block a user