venue_management/app/controllers/admin/venue_admin_controller.rb

16 lines
537 B
Ruby
Raw Normal View History

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]}
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