+ xtype : 'Button',
+ text : _this._strings['ea4788705e6873b424c65e91c2846b19'] /* Cancel */,
+ listeners : {
+ click : function() {
+ _this.form.reset();
+ _this.dialog.hide();
+ }
+ },
+ xns : Roo,
+ '|xns' : 'Roo'
+ },
+ {
+ xtype : 'Button',
+ text : _this._strings['e0aa021e21dddbd6d8cecec71e9cf564'] /* OK */,
+ listeners : {
+ click : function() {
+
+ var name = _this.form.findField('name').getValue();
+ name = name.toUpperCase().replace(/[^A-Z0-9]+/g, '');
+ if (!name.length) {
+ Roo.MessageBox.alert("Error","Please fill in a valid name");
+ return;
+ }
+ _this.form.findField('name').setValue(name);
+
+ _this.form.doAction('submit');
+
+ }
+ },
+ xns : Roo,
+ '|xns' : 'Roo'
+ }
+ ],
+ items : [
+ {
+ xtype : 'ContentPanel',