+ 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
+ }
+ ]
+
+ }
+ ]
+