pulldown js error
[Pman.Admin] / Pman.Dialog.AdminEnumType.js
index b5d4a6b..aea4d2f 100644 (file)
@@ -30,14 +30,106 @@ Pman.Dialog.AdminEnumType = {
     {
         var _this = this;
         this.dialog = Roo.factory({
+            center
+ : {
+                '|xns' : 'Roo',
+                xtype : 'LayoutRegion',
+                xns : Roo
+            },
             '|xns' : 'Roo',
+            modal : true,
+            width : 480,
             xtype : 'LayoutDialog',
+            height : 160,
+            resizable : false,
             xns : Roo,
+            title : "Edit",
+            buttons : [
+                {
+                       '|xns' : 'Roo',
+                       xtype : 'Button',
+                       text : "Save",
+                       xns : Roo,
+                       listeners : {
+                               click : function (_self, e)
+                                  {
+                                      //this.url = baseURL + '/Roo/Core_enum.php';
+                                      //_this.dialog.el.mask("Saving");
+                                      _this.form.doAction("submit");
+                                  }
+                       }
+                   },
+{
+                       '|xns' : 'Roo',
+                       xtype : 'Button',
+                       text : "Cancel",
+                       xns : Roo,
+                       listeners : {
+                               click : function (_self, e)
+                                  {
+                                      _this.dialog.hide();
+                                  }
+                       }
+                   }
+            ],
             items : [
                {
                     '|xns' : 'Roo',
-                    xtype : 'LayoutRegion',
-                    xns : Roo
+                    xtype : 'ContentPanel',
+                    region : 'center',
+                    xns : Roo,
+                    items : [
+                       {
+                            '|xns' : 'Roo.form',
+                            url : baseURL + '/Roo/Core_enum',
+                            xtype : 'Form',
+                            xns : Roo.form,
+                            listeners : {
+                               rendered : function (form)
+                                  {
+                                      _this.form = this;
+                                  },
+                               actioncomplete : function (_self, action)
+                                  {
+                                      if(action.type == 'submit'){
+                                          _this.dialog.hide();
+                                      }
+                                  }
+                            },
+                            items : [
+                               {
+                                    '|xns' : 'Roo.form',
+                                    name : 'name',
+                                    width : 270,
+                                    xtype : 'TextField',
+                                    fieldLabel : 'Name',
+                                    xns : Roo.form
+                                },
+                               {
+                                    '|xns' : 'Roo.form',
+                                    name : 'id',
+                                    xtype : 'Hidden',
+                                    xns : Roo.form
+                                },
+                               {
+                                    '|xns' : 'Roo.form',
+                                    name : 'etype',
+                                    xtype : 'Hidden',
+                                    xns : Roo.form
+                                },
+                               {
+                                    '|xns' : 'Roo.form',
+                                    name : 'display_name',
+                                    width : 270,
+                                    xtype : 'TextField',
+                                    fieldLabel : 'Display Name',
+                                    xns : Roo.form
+                                }
+                            ]
+
+                        }
+                    ]
+
                 }
             ]