Sha256: 6a9846e06a4b817d46d5e68ce87f1d90fc3fa308364f74ee096a6e05ac5586d0

Contents?: true

Size: 500 Bytes

Versions: 3

Compression:

Stored size: 500 Bytes

Contents

# frozen_string_literal: true

class Admin::Tramway::Event::SectionForm < ::Tramway::ApplicationForm
  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,
                      position: :numeric
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tramway-event-2.0.1 app/forms/admin/tramway/event/section_form.rb
tramway-event-2.0.0.1 app/forms/admin/tramway/event/section_form.rb
tramway-event-2.0 app/forms/admin/tramway/event/section_form.rb