Sha256: 4e46f6ae637f8ac89195d8655bde20ae762d4b26b8dd6c3f4455962ab7ef0c96

Contents?: true

Size: 529 Bytes

Versions: 17

Compression:

Stored size: 529 Bytes

Contents

class LockableBookForm < BookForm
  def default_config
    super.merge(:mode => :lockable)
  end

  def configuration
    sup = super
    sup.merge(
      :items => sup[:items].reject{ |i| i.is_a?(Hash) && i[:name] == :author__first_name } + [{
        :xtype => :compositefield,
        :defaults => {:flex => 1},
        :field_label => "Author name (first, last)",
        :items => [{:name => :author__first_name, :nested_attribute => true}, {:name => :author__last_name, :nested_attribute => true}]
      }]
    )
  end
end

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
netzke-basepack-0.8.4 test/basepack_test_app/app/components/lockable_book_form.rb
netzke-basepack-0.8.3 test/basepack_test_app/app/components/lockable_book_form.rb
netzke-basepack-0.8.2 test/basepack_test_app/app/components/lockable_book_form.rb
netzke-basepack-0.8.1 test/basepack_test_app/app/components/lockable_book_form.rb
netzke-basepack-0.8.0 test/basepack_test_app/app/components/lockable_book_form.rb
netzke-basepack-0.7.7 test/basepack_test_app/app/components/lockable_book_form.rb
netzke-basepack-zh-0.7.6 test/basepack_test_app/app/components/lockable_book_form.rb
netzke-basepack-0.7.6 test/basepack_test_app/app/components/lockable_book_form.rb
netzke-basepack-0.7.5 test/basepack_test_app/app/components/lockable_book_form.rb
netzke-basepack-0.7.4 test/basepack_test_app/app/components/lockable_book_form.rb
netzke-basepack-0.7.3 test/basepack_test_app/app/components/lockable_book_form.rb
netzke-basepack-0.7.2 test/basepack_test_app/app/components/lockable_book_form.rb
netzke-basepack-0.7.1 test/basepack_test_app/app/components/lockable_book_form.rb
netzke-basepack-0.6.5 test/rails_app/app/components/lockable_book_form.rb
netzke-basepack-0.7.0 test/rails_app/app/components/lockable_book_form.rb
netzke-basepack-0.6.4 test/rails_app/app/components/lockable_book_form.rb
netzke-basepack-0.6.3 test/rails_app/app/components/lockable_book_form.rb