Sha256: 320f3b5e01256378fb37c4e17f53a735e17a1ce4827ed4d3706548c429bf1894

Contents?: true

Size: 427 Bytes

Versions: 6

Compression:

Stored size: 427 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
      ]
    )
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
netzke-basepack-0.7.3 test/basepack_test_app/app/components/book_form_with_custom_fields.rb
netzke-basepack-0.7.2 test/basepack_test_app/app/components/book_form_with_custom_fields.rb
netzke-basepack-0.7.1 test/basepack_test_app/app/components/book_form_with_custom_fields.rb
netzke-basepack-0.6.5 test/rails_app/app/components/book_form_with_custom_fields.rb
netzke-basepack-0.7.0 test/rails_app/app/components/book_form_with_custom_fields.rb
netzke-basepack-0.6.4 test/rails_app/app/components/book_form_with_custom_fields.rb