Sha256: adb7db21d9de2cb2d73b49eacd72bf3528be96e6432921924e0a723a9c0eb6c4

Contents?: true

Size: 559 Bytes

Versions: 1

Compression:

Stored size: 559 Bytes

Contents

class UserForm < Netzke::Basepack::FormPanel
  js_property :title, "User"
  
  config do
    {
      :model => 'User',
      :record_id => User.first.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
      ]
    }
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
netzke-basepack-0.6.0 test/rails_app/app/components/user_form.rb