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-08-07 14:03:30 +00:00
|
|
|
before_action :set_calendar_types,only: [:edit,:new]
|
|
|
|
def set_calendar_types
|
|
|
|
@calendar_types = CalendarType.all.collect{|v| [v.title,v.id.to_s]}
|
|
|
|
end
|
2020-08-04 09:04:04 +00:00
|
|
|
def initialize(*)
|
|
|
|
super
|
|
|
|
ActionView::Helpers::FormBuilder.send(:prepend,VenueAdminHelper)
|
|
|
|
@venue = 'venue'
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|