Upgrade to ExtJS 4.0.0 - Released 04/26/2011
[extjs.git] / examples / app / simple / app / view / user / Edit.js
diff --git a/examples/app/simple/app/view/user/Edit.js b/examples/app/simple/app/view/user/Edit.js
new file mode 100644 (file)
index 0000000..eaabbfe
--- /dev/null
@@ -0,0 +1,50 @@
+Ext.define('AM.view.user.Edit', {
+    extend: 'Ext.window.Window',
+    alias : 'widget.useredit',
+
+    requires: ['Ext.form.Panel'],
+
+    title : 'Edit User',
+    layout: 'fit',
+    autoShow: true,
+    height: 120,
+    width: 280,
+
+    initComponent: function() {
+        this.items = [
+            {
+                xtype: 'form',
+                padding: '5 5 0 5',
+                border: false,
+                style: 'background-color: #fff;',
+
+                items: [
+                    {
+                        xtype: 'textfield',
+                        name : 'name',
+                        fieldLabel: 'Name'
+                    },
+                    {
+                        xtype: 'textfield',
+                        name : 'email',
+                        fieldLabel: 'Email'
+                    }
+                ]
+            }
+        ];
+
+        this.buttons = [
+            {
+                text: 'Save',
+                action: 'save'
+            },
+            {
+                text: 'Cancel',
+                scope: this,
+                handler: this.close
+            }
+        ];
+
+        this.callParent(arguments);
+    }
+});