2020-08-04 09:04:04 +00:00
|
|
|
# encoding: utf-8
|
|
|
|
class Admin::VenueAdminController < OrbitAdminController
|
|
|
|
#alias_method :org_datetime_picker, :datetime_picker
|
|
|
|
#include OrbitFormHelper
|
2020-10-05 16:09:17 +00:00
|
|
|
before_action :set_calendar_types,only: [:edit,:new,:copy]
|
2020-08-07 14:03:30 +00:00
|
|
|
def set_calendar_types
|
|
|
|
@calendar_types = CalendarType.all.collect{|v| [v.title,v.id.to_s]}
|
2020-08-15 13:40:31 +00:00
|
|
|
@module_pages = Page.where(:module => 'venue_management').collect{|p| [p.name,p.id] }
|
2020-08-07 14:03:30 +00:00
|
|
|
end
|
2020-08-04 09:04:04 +00:00
|
|
|
def initialize(*)
|
|
|
|
super
|
|
|
|
ActionView::Helpers::FormBuilder.send(:prepend,VenueAdminHelper)
|
|
|
|
@venue = 'venue'
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|