@@ -50,12 +52,14 @@
+<%if is_manager?%>
<%= link_to "Add", new_panel_calendar_new_back_end_event_path, :class => "btn btn-primary pull-right", :id=>"create_event_btn", :ref=>"add-btn" %>
-
+
\ No newline at end of file
+
+<%end%>
\ No newline at end of file
diff --git a/vendor/built_in_modules/calendar_new/app/views/panel/calendar_new/front_end/events/index.html.erb b/vendor/built_in_modules/calendar_new/app/views/panel/calendar_new/front_end/events/index.html.erb
new file mode 100644
index 00000000..77e50d89
--- /dev/null
+++ b/vendor/built_in_modules/calendar_new/app/views/panel/calendar_new/front_end/events/index.html.erb
@@ -0,0 +1,65 @@
+
+<%= javascript_include_tag 'fullcalendar' %>
+<%= javascript_include_tag 'calendar' %>
+<%= javascript_include_tag 'bootstrap-datetimepicker' %>
+
+<%= stylesheet_link_tag "fullcalendar"%>
+<%= stylesheet_link_tag "calendar"%>
+
+
+
+
+
Loading...
+
+
+
+<%end%>
\ No newline at end of file
diff --git a/vendor/built_in_modules/calendar_new/config/locales/en.yml b/vendor/built_in_modules/calendar_new/config/locales/en.yml
index ec356548..52e9b16d 100644
--- a/vendor/built_in_modules/calendar_new/config/locales/en.yml
+++ b/vendor/built_in_modules/calendar_new/config/locales/en.yml
@@ -1,5 +1,6 @@
en:
calendar:
+ all: All
calendar: Calendar
calendars: Calendars
color: Color
diff --git a/vendor/built_in_modules/calendar_new/config/routes.rb b/vendor/built_in_modules/calendar_new/config/routes.rb
index 2faf9f0d..3cc9d726 100644
--- a/vendor/built_in_modules/calendar_new/config/routes.rb
+++ b/vendor/built_in_modules/calendar_new/config/routes.rb
@@ -6,6 +6,10 @@ Rails.application.routes.draw do
match 'events/agenda' => 'events#agenda', :as => :agenda
resources :events
end
+ namespace :front_end do
+ match 'events/agenda' => 'events#agenda', :as => :agenda
+ resources :events
+ end
end
end
end
diff --git a/vendor/built_in_modules/calendar_new/init.rb b/vendor/built_in_modules/calendar_new/init.rb
index 3af664a0..11695f67 100644
--- a/vendor/built_in_modules/calendar_new/init.rb
+++ b/vendor/built_in_modules/calendar_new/init.rb
@@ -9,6 +9,17 @@ module CalendarNew
author "RD dep"
intro "I am intro"
update_info 'some update_info'
+
+ authorizable
+ categorizable
+ taggable
+ category_customizable
+
+ front_end do
+ app_page 'events' do
+ frontend_i18n "calendar_new.frontend.events"
+ end
+ end
side_bar do
head_label_i18n 'calendar.calendar',:icon_class=>"icons-calendar"
@@ -18,17 +29,28 @@ module CalendarNew
head_link_path "panel_calendar_new_back_end_events_path"
- context_link 'calendar.new_category',
- :link_path=>"new_panel_calendar_new_back_end_event_category_path" ,
+ context_link 'calendar.categories',
+ :link_path=>"admin_module_app_categories_path(get_module_app)" ,
:priority=>3,
- :active_for_action=>{:event_categories=>:new},
+ :active_for_category => 'CalendarNew',
:available_for => [:manager]
context_link 'calendar.categories',
- :link_path=>"panel_calendar_new_back_end_event_categories_path" ,
- :priority=>2,
- :active_for_action=>{:event_categories=>:index},
+ :link_path=>"admin_module_app_categories_path(get_module_app)" ,
+ :priority=>3,
+ :active_for_category => 'CalendarNew',
:available_for => [:manager]
+ context_link 'tags',
+ :link_path=>"admin_module_tags_path(module_app_id: get_module_app)" ,
+ :priority=>4,
+ :active_for_tag => 'CalendarNew',
+ :available_for => [:manager]
+
+ context_link 'module_authorization',
+ :link_path=>"admin_authorizations_path(get_module_app.key)",
+ :priority=>6,
+ :available_for => [:manager]
+
end
end
end