Sha256: 639dea2bddb1f903866cf5a6a598100132e1de4e195b14bcfc15d176bd0e0736

Contents?: true

Size: 634 Bytes

Versions: 37

Compression:

Stored size: 634 Bytes

Contents

# frozen_string_literal: true

class Admin::Tramway::Event::EventForm < ::Tramway::Core::ApplicationForm
  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, reach: :default
    end
  end
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
tramway-event-1.12.9.1 app/forms/admin/tramway/event/event_form.rb
tramway-event-1.12.9 app/forms/admin/tramway/event/event_form.rb
tramway-event-1.12.8.2 app/forms/admin/tramway/event/event_form.rb
tramway-event-1.12.8.1 app/forms/admin/tramway/event/event_form.rb
tramway-event-1.12.8 app/forms/admin/tramway/event/event_form.rb
tramway-event-1.12.7 app/forms/admin/tramway/event/event_form.rb
tramway-event-1.12.6.4 app/forms/admin/tramway/event/event_form.rb
tramway-event-1.12.6.3 app/forms/admin/tramway/event/event_form.rb
tramway-event-1.12.6.2 app/forms/admin/tramway/event/event_form.rb
tramway-event-1.12.6 app/forms/admin/tramway/event/event_form.rb
tramway-event-1.12.5 app/forms/admin/tramway/event/event_form.rb
tramway-event-1.12.4 app/forms/admin/tramway/event/event_form.rb
tramway-event-1.12.3.10 app/forms/admin/tramway/event/event_form.rb
tramway-event-1.12.3.9 app/forms/admin/tramway/event/event_form.rb
tramway-event-1.12.3.8 app/forms/admin/tramway/event/event_form.rb
tramway-event-1.12.3.7 app/forms/admin/tramway/event/event_form.rb
tramway-event-1.12.3.6 app/forms/admin/tramway/event/event_form.rb
tramway-event-1.12.3.5 app/forms/admin/tramway/event/event_form.rb
tramway-event-1.12.3.4 app/forms/admin/tramway/event/event_form.rb
tramway-event-1.12.3.3 app/forms/admin/tramway/event/event_form.rb