Sha256: 26d338ed64282a914369a184ef3adec8e3e589e14fcb2bfe6c184f9537848c53

Contents?: true

Size: 524 Bytes

Versions: 13

Compression:

Stored size: 524 Bytes

Contents

class UserGridWithCustomizedFormFields < Netzke::Basepack::GridPanel
  js_property :title, "Users"
  config :model => "User"

  def default_fields_for_forms
    [
      {:xtype => 'fieldset', :title => "Basic Info", :checkboxToggle => true, :items => [
        :first_name,
        {:name => :last_name}
      ]},
      {:xtype => 'fieldset', :title => "Timestamps", :items => [
        {:name => :created_at, :disabled => true},
        {:name => :updated_at, :disabled => true}
      ]},
      :role__name
    ]
  end
end

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
netzke-basepack-0.7.7 test/basepack_test_app/app/components/user_grid_with_customized_form_fields.rb
netzke-basepack-zh-0.7.6 test/basepack_test_app/app/components/user_grid_with_customized_form_fields.rb
netzke-basepack-0.7.6 test/basepack_test_app/app/components/user_grid_with_customized_form_fields.rb
netzke-basepack-0.7.5 test/basepack_test_app/app/components/user_grid_with_customized_form_fields.rb
netzke-basepack-0.7.4 test/basepack_test_app/app/components/user_grid_with_customized_form_fields.rb
netzke-basepack-0.7.3 test/basepack_test_app/app/components/user_grid_with_customized_form_fields.rb
netzke-basepack-0.7.2 test/basepack_test_app/app/components/user_grid_with_customized_form_fields.rb
netzke-basepack-0.7.1 test/basepack_test_app/app/components/user_grid_with_customized_form_fields.rb
netzke-basepack-0.6.5 test/rails_app/app/components/user_grid_with_customized_form_fields.rb
netzke-basepack-0.7.0 test/rails_app/app/components/user_grid_with_customized_form_fields.rb
netzke-basepack-0.6.4 test/rails_app/app/components/user_grid_with_customized_form_fields.rb
netzke-basepack-0.6.3 test/rails_app/app/components/user_grid_with_customized_form_fields.rb
netzke-basepack-0.6.2 test/rails_app/app/components/user_grid_with_customized_form_fields.rb