Sha256: 6cb3264d87b34466a550f646f71ddcfb7297698e1cffb508307aca41040255cd

Contents?: true

Size: 675 Bytes

Versions: 4

Compression:

Stored size: 675 Bytes

Contents

class Tramway::Landing::BlockForm < ::Tramway::Core::ApplicationForm
  properties :title, :background, :view_state, :block_type, :position, :navbar_link, :anchor, :description, :link_object_type, :link_object_id

  def initialize(object = nil)
    form_object = super object
    form_properties title: :string,
                    background: :file,
                    position: :numeric,
                    block_type: :default,
                    navbar_link: :default,
                    anchor: :string,
                    description: :ckeditor,
                    link_object_type: :default,
                    link_object_id: :numeric
    form_object
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
tramway-landing-1.4.7.4 app/forms/tramway/landing/block_form.rb
tramway-landing-1.4.7.3 app/forms/tramway/landing/block_form.rb
tramway-landing-1.4.7.2 app/forms/tramway/landing/block_form.rb
tramway-landing-1.4.7.1 app/forms/tramway/landing/block_form.rb