Sha256: 9524845e6c6f132a793238eac8e8e3a734df4b8995129e2b97f671dfa0bf045d

Contents?: true

Size: 792 Bytes

Versions: 7

Compression:

Stored size: 792 Bytes

Contents

class BookPagingFormPanel < Netzke::Basepack::PagingFormPanel
  def default_config
    super.merge({
      :title => "Digitized books",
      :model => "Book",
      :record => Book.first,
      # :scope => {:digitized => true},
      :mode => :lockable,
      :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]
      }]}]
    })
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

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