title: 'Edit Contact Details',
modal: true,
width: 530,
- height: 300,
+ height: 400,
shadow:true,
minWidth:200,
minHeight:180,
this.dialog.addKeyListener(27, this.dialog.hide, this.dialog);
if (this.itemList.indexOf('save_send') > -1 ) {
- this.dialog.addButton("Send Introduction Mail1", this.saveSend, this);
+ this.dialog.addButton("Send Introduction Mail", this.saveSend, this);
}
this.dialog.addButton("Cancel", this.dialog.hide, this.dialog);
actioncomplete: function(f, act) {
_this.dialog.el.unmask();
if (act.type == 'load') {
+
_this.data = act.result.data;
-
}
var data = _this.data;
// we dont have a form where company name is sent in - and is editable..
//this.form.findField('office_id')
+ if(!data.countries && _this.form.findField('countries')){
+ _this.form.findField('countries').setValue();// set empty array by default...
+ }
if (_this.form.findField('company_id') && _this.form.findField('company_id').setFromData) {
_this.form.findField('company_id').setFromData( data.company_id ? {
}
}
+
+
return;
}
xtype : 'TextField',
width : 300
},
+ countries : {
+ xtype: 'ComboBoxArray',
+ xns: Roo.form,
+ fieldLabel : 'Country',
+ hiddenName : 'countries',
+ name : 'countries_name',
+ width : 300,
+ combo : {
+ xtype: 'ComboBox',
+ xns: Roo.form,
+ allowBlank : true,
+ alwaysQuery : true,
+ displayField : 'title',
+ editable : false,
+ emptyText : "Select Country",
+ forceSelection : true,
+ idField : 'id',
+ triggerAction : 'all',
+ typeAhead : true,
+ valueField : 'code',
+ width : 280,
+ store : {
+ xtype: 'SimpleStore',
+ xns: Roo.data,
+ data : (function() {
+ return Pman.I18n.simpleStoreData('c');
+ })(),
+ fields : [ 'code', 'title' ]
+ }
+ }
+ },
passwd1 : {
name : 'passwd1',
fieldLabel : "New Password ",