Class: Admin::Tramway::Event::EventForm

Inherits:
Tramway::Core::ApplicationForm
  • Object
show all
Defined in:
app/forms/admin/tramway/event/event_form.rb

Instance Method Summary collapse

Constructor Details

#initialize(object) ⇒ EventForm

Returns a new instance of EventForm.



7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'app/forms/admin/tramway/event/event_form.rb', line 7

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
  end
end