_this.form.setValues(_this.data);
+ if(_this.data.status * 1 == 0){
+ _this.form.findField('status').reset();
+ }
+
+ _this.form.clearInvalid();
+
return;
},
failure: function(res) {
}
if (action.type == 'load') {
- if(_this.data.status * 1 == 0){
- _this.form.findField('status').reset();
- }
-
return;
}
if (action.type =='submit') {
'|xns' : 'Roo.bootstrap'
}
]
- }
- ]
- },
- {
- xtype : 'Row',
- xns : Roo.bootstrap,
- '|xns' : 'Roo.bootstrap',
- items : [
+ },
{
xtype : 'Column',
xs : 12,
'|xns' : 'Roo.bootstrap'
}
]
- }
- ]
- },
- {
- xtype : 'Row',
- xns : Roo.bootstrap,
- '|xns' : 'Roo.bootstrap',
- items : [
+ },
{
xtype : 'Column',
xs : 12,
{
xtype : 'ComboBox',
allowBlank : false,
+ alwaysQuery : true,
displayField : 'value',
editable : false,
fieldLabel : _this._strings['004bf6c9a40003140292e97330236c53'] /* Action */,
+ forceSelection : true,
hiddenName : 'status',
+ indicatorpos : 'right',
mode : 'local',
name : 'status_name',
+ selectOnFocus : true,
+ tpl : '<div class=\"roo-select2-result\"><b>{value}</b></div>',
triggerAction : 'all',
valueField : 'code',
listeners : {
xtype : 'SimpleStore',
data : [
['1', 'Approve'],
+ ['-2', 'Temporary'],
['-1', 'Reject']
],
fields : [ 'code', 'value' ],
}
}
]
+ },
+ {
+ xtype : 'Column',
+ xs : 12,
+ xns : Roo.bootstrap,
+ '|xns' : 'Roo.bootstrap',
+ items : [
+ {
+ xtype : 'DateField',
+ xns : Roo.bootstrap,
+ '|xns' : 'Roo.bootstrap'
+ }
+ ]
}
]
},