app/forms/admin/tramway/event/event_form.rb in tramway-event-1.10.2 vs app/forms/admin/tramway/event/event_form.rb in tramway-event-1.11
- old
+ new
@@ -1,20 +1,14 @@
# frozen_string_literal: true
class Admin::Tramway::Event::EventForm < ::Tramway::Core::ApplicationForm
- properties :title, :description, :begin_date, :end_date, :photo, :status,
+ properties :title, :description, :begin_date, :end_date, :photo, :reach,
:request_collecting_begin_date, :request_collecting_end_date, :short_description
def initialize(object)
super(object).tap do
- form_properties title: :string,
- short_description: :text,
- description: :ckeditor,
- begin_date: :date_picker,
- end_date: :date_picker,
- request_collecting_begin_date: :date_picker,
- request_collecting_end_date: :date_picker,
- photo: :file,
- status: :default
+ form_properties title: :string, short_description: :text, description: :ckeditor, begin_date: :date_picker,
+ end_date: :date_picker, request_collecting_begin_date: :date_picker,
+ request_collecting_end_date: :date_picker, photo: :file, reach: :default
end
end
end