app/forms/tramway/event/section_form.rb in tramway-event-1.2.1 vs app/forms/tramway/event/section_form.rb in tramway-event-1.2.2
- old
+ new
@@ -1,14 +1,15 @@
class Tramway::Event::SectionForm < ::Tramway::Core::ApplicationForm
- properties :event, :title, :description, :photo, :icon
+ properties :event, :title, :description, :photo, :icon, :position
association :event
def initialize(object)
super(object).tap do
form_properties title: :string,
description: :ckeditor,
event: :association,
photo: :file,
- icon: :string
+ icon: :string,
+ position: :numeric
end
end
end