- inputType : 'password',
- invalidText : 'The passwords you entered do not match',
- name : 'password1',
- placeholder : _this._strings['1849ffc8731b5e74ae6157c91ba73575'] /* Please confirm your password */,
- validator : function(v){
-
- if(_this.form.findField('password').getValue() == v) {
-
- return true;
- }
-
- return 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 : {
+ select : function (combo, record, index)
+ {
+ _this.expire_dt.allowBlank = true;
+ _this.expire_dt.el.hide();
+
+ if(record.data.code == '-2'){
+ _this.expire_dt.allowBlank = false;
+ _this.expire_dt.el.show();
+ }
+ }
+ },
+ xns : Roo.bootstrap,
+ '|xns' : 'Roo.bootstrap',
+ store : {
+ xtype : 'SimpleStore',
+ data : [
+ ['1', 'Approve'],
+ ['-2', 'Temporary'],
+ ['-1', 'Reject']
+ ],
+ fields : [ 'code', 'value' ],
+ xns : Roo.data,
+ '|xns' : 'Roo.data'
+ }
+ }
+ ]
+ },
+ {
+ xtype : 'Column',
+ xs : 12,
+ xns : Roo.bootstrap,
+ '|xns' : 'Roo.bootstrap',
+ items : [
+ {
+ xtype : 'DateField',
+ allowBlank : false,
+ fieldLabel : _this._strings['5a787141d53b573ec9b86e900bfe0d79'] /* Expire Date */,
+ format : 'Y-m-d',
+ indicatorpos : 'right',
+ name : 'expire_dt',
+ listeners : {
+ render : function (_self)
+ {
+ _this.expire_dt = this;
+
+ var d = new Date();
+
+ d.setDate(d.getDate() - 1);
+
+ this.setStartDate(d);
+
+ this.el.setVisibilityMode(Roo.Element.DISPLAY);
+
+ this.el.hide();
+ }