Sha256: 5689fe014cf779da2dec88e42102dfa91d10f75816c26e3849ced74d03eff304

Contents?: true

Size: 450 Bytes

Versions: 5

Compression:

Stored size: 450 Bytes

Contents

class BookFormWithCustomFields < Netzke::Basepack::FormPanel
  js_property :title, Book.model_name.human

  def default_config
    super.merge(
      :model => "Book",
      :record => Book.first,
      # :mode => :lockable,
      :items => [
        :title,
        {:name => :notes, :read_only => true},
        :author__first_name,
        :author__last_name,
        :digitized,
        :exemplars,
        :last_read_at
      ]
    )
  end

end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
netzke-basepack-0.7.7 test/basepack_test_app/app/components/book_form_with_custom_fields.rb
netzke-basepack-zh-0.7.6 test/basepack_test_app/app/components/book_form_with_custom_fields.rb
netzke-basepack-0.7.6 test/basepack_test_app/app/components/book_form_with_custom_fields.rb
netzke-basepack-0.7.5 test/basepack_test_app/app/components/book_form_with_custom_fields.rb
netzke-basepack-0.7.4 test/basepack_test_app/app/components/book_form_with_custom_fields.rb