_strings : {
'e2c9d024b79dfb48b42a7807206c6aed' :"Verify New IP Access",
'd41d8cd98f00b204e9800998ecf8427e' :"",
- '7c5ba892645af8d7dba520e3978c726f' :"Director",
'f6039d44b29456b20f8f373155ae4973' :"Username",
+ '004bf6c9a40003140292e97330236c53' :"Action",
'dfb790522fdea3859af206d32916fe77' :"User Agent",
'd71940f24ee38ee09f6e06b908480bcf' :"Resend email",
'14cf5e829f5cb6fbf8cb54f7c5ff4ca9' :"Start the application process "
_to_data : 1
},
success : function(res) {
- _this.form.setValues(res.data);
+
+ _this.data = res.data;
+
+ _this.form.setValues(_this.data);
+
return;
},
failure: function(res) {
}
if (action.type == 'load') {
+ if(_this.data.status * 1 == 0){
+ _this.form.findField('status').reset();
+ }
+
return;
}
if (action.type =='submit') {
},
{
xtype : 'Row',
- listeners : {
- render : function (_self)
- {
- _this.row_pwd_label = _self;
- }
- },
xns : Roo.bootstrap,
'|xns' : 'Roo.bootstrap',
items : [
name : 'user_agent',
readOnly : true,
rows : 3,
+ style : 'margin-bottom: 15px;',
xns : Roo.bootstrap,
'|xns' : 'Roo.bootstrap'
}
},
{
xtype : 'Row',
- listeners : {
- render : function (_self)
- {
- _this.row_pwd_label = _self;
- }
- },
xns : Roo.bootstrap,
'|xns' : 'Roo.bootstrap',
items : [
{
xtype : 'ComboBox',
allowBlank : false,
- alwaysQuery : true,
- displayField : 'fullname',
- editable : true,
- fieldLabel : _this._strings['7c5ba892645af8d7dba520e3978c726f'] /* Director */,
- forceSelection : true,
- hiddenName : '_existing_director',
- indicatorpos : 'right',
- md : 12,
- minChars : 2,
- name : '_existing_director_name',
- queryParam : 'query[name]',
- tpl : '<div class=\"roo-select2-result\">{fullname}</div>',
+ displayField : 'value',
+ editable : false,
+ fieldLabel : _this._strings['004bf6c9a40003140292e97330236c53'] /* Action */,
+ hiddenName : 'status',
+ mode : 'local',
+ name : 'status_name',
triggerAction : 'all',
- typeAhead : true,
- valueField : 'id',
+ valueField : 'code',
+ listeners : {
+ select : function (combo, record, index)
+ {
+
+ }
+ },
xns : Roo.bootstrap,
'|xns' : 'Roo.bootstrap',
store : {
- xtype : 'Store',
- remoteSort : true,
- sortInfo : {field:"firstname",direction:"ASC"},
- listeners : {
- beforeload : function (_self, o)
- {
- o.params = o.params || {};
-
- o.params._with_fullname = 1;
-
- var parent = _this.form.findField('parent_company_id').getValue() * 1;
-
- o.params._hide_existing = 1;
-
- o.params._parent_company_id = parent;
-
- if (Roo.select('main').first().dom.className.indexOf('trust') >= 0) {
-
- o.params._find_person_type = 'trustee';
- }
-
- }
- },
+ xtype : 'SimpleStore',
+ data : [
+ ['1', 'Approve'],
+ ['-1', 'Reject']
+ ],
+ fields : [ 'code', 'value' ],
xns : Roo.data,
- '|xns' : 'Roo.data',
- proxy : {
- xtype : 'HttpProxy',
- method : 'GET',
- url : baseURL+'/Roo/Coba_person',
- xns : Roo.data,
- '|xns' : 'Roo.data'
- },
- reader : {
- xtype : 'JsonReader',
- fields : [
- {
- 'name': 'id',
- 'type': 'int'
- },
- {
- 'name': 'honor',
- 'type': 'string'
- },
- {
- 'name': 'firstname',
- 'type': 'string'
- },
- {
- 'name': 'middlename',
- 'type': 'string'
- },
- {
- 'name': 'lastname',
- 'type': 'string'
- },
- {
- 'name': 'fullname',
- 'type': 'string'
- }
- ],
- xns : Roo.data,
- '|xns' : 'Roo.data'
- }
+ '|xns' : 'Roo.data'
}
}
]