Sha256: b28e5579006f84d0f58f5880b67a2e2f3f59b2405c027d49d52a8e049d0df3d6

Contents?: true

Size: 582 Bytes

Versions: 6

Compression:

Stored size: 582 Bytes

Contents

class UserForm < Netzke::Basepack::FormPanel
  title User.model_name.human

  model "User"

  record_id User.first.try(:id)

  items [
    {: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
  ]

  # Uncomment for visual mask testing
  # def netzke_submit_endpoint(params)
  #   sleep 2
  #   super
  # end
end

Version data entries

6 entries across 6 versions & 2 rubygems

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