Sha256: e9a1ca6b514af72f24165e6052a2a6fdb287c22a13614a101945b576a7f2b08f

Contents?: true

Size: 564 Bytes

Versions: 15

Compression:

Stored size: 564 Bytes

Contents

class Tramway::Event::EventForm < ::Tramway::Core::ApplicationForm
  properties :title, :description, :begin_date, :end_date, :photo, :status,
    :request_collecting_begin_date, :request_collecting_end_date

  def initialize(object)
    super(object).tap do
      form_properties title: :string,
        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
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
tramway-event-1.9.19.1 app/forms/tramway/event/event_form.rb
tramway-event-1.9.19 app/forms/tramway/event/event_form.rb
tramway-event-1.9.18.2 app/forms/tramway/event/event_form.rb
tramway-event-1.9.18.1 app/forms/tramway/event/event_form.rb
tramway-event-1.9.18 app/forms/tramway/event/event_form.rb
tramway-event-1.9.17 app/forms/tramway/event/event_form.rb
tramway-event-1.9.16 app/forms/tramway/event/event_form.rb
tramway-event-1.9.15 app/forms/tramway/event/event_form.rb
tramway-event-1.9.14 app/forms/tramway/event/event_form.rb
tramway-event-1.9.13 app/forms/tramway/event/event_form.rb
tramway-event-1.9.12 app/forms/tramway/event/event_form.rb
tramway-event-1.9.11.2 app/forms/tramway/event/event_form.rb
tramway-event-1.9.11.1 app/forms/tramway/event/event_form.rb
tramway-event-1.9.11 app/forms/tramway/event/event_form.rb
tramway-event-1.9.10.1 app/forms/tramway/event/event_form.rb