Sha256: 03e5d3f30d50b708d8e79090e37540b8b7b62eddb1f0197156d5770be7ace4f0

Contents?: true

Size: 729 Bytes

Versions: 5

Compression:

Stored size: 729 Bytes

Contents

class BookPagingForm < Netzke::Basepack::PagingForm
  def configure(c)
    c.title = "Digitized books"
    c.model = "Book"
    c.record = Book.first
    # :scope => {:digitized => true},
    c.mode = :lockable
    c.items = [{:layout => :hbox, :label_align => :top, :border => false, :defaults => {:border => false}, :items => [{
      :flex => 2,
      :layout => :anchor,
      :defaults => {:anchor => "-8"},
      :items => [:title, :notes, :digitized, :created_at, :updated_at, :last_read_at]
    },{
      :flex => 1,
      :layout => :anchor,
      :defaults => {:anchor => "-8"},
      :items => [:author__name, {:name => :author__first_name, :read_only => true}, :exemplars, :published_on]
    }]}]
    super
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
netzke-basepack-0.8.4 test/basepack_test_app/app/components/book_paging_form.rb
netzke-basepack-0.8.3 test/basepack_test_app/app/components/book_paging_form.rb
netzke-basepack-0.8.2 test/basepack_test_app/app/components/book_paging_form.rb
netzke-basepack-0.8.1 test/basepack_test_app/app/components/book_paging_form.rb
netzke-basepack-0.8.0 test/basepack_test_app/app/components/book_paging_form.rb