Pman.Tab.BAdminStaff = new Roo.XComponent({
_strings : {
- 'b15aafc19dc2ba4b788adf77268d8ca4' :"Hide Inactive",
+ 'cdb6b6bab1fd18b9dbfe3fb84a5d34ae' :"<i class=\"fa fa-search\"></i>",
'ce8ae9da5b7cd6c3df2929543a9af92d' :"Email",
+ 'b15aafc19dc2ba4b788adf77268d8ca4' :"Hide Inactive",
'f29c99f082755399839b64ebaf9f608a' :"List / View",
'4f3cdff2e6a5e08440be182ef40d93f7' :"Print / Export",
'ec211f7c20af43e742bf2570c3cb84f9' :"Add",
'a37ede293936e29279ed543129451ec3' :"Groups",
'7dce122004969d56ae2e0245cb754d35' :"Edit",
'05b763f7d24f32575493b3c23f299b0e' :"Add To Group",
+ '9bac86fd9f499d47cea5f2fd70d701c1' :"search for account",
'e0a7cc944485bdedafb92b0cf98632fa' :"Remove From Group",
'bcc254b55c4a1babdf1dcb82c207506b' :"Phone",
'25f57527ae8a27c94fb5230b5486c743' :"Permission List",
items : [
{
xtype : 'Column',
+ md : 3,
+ xns : Roo.bootstrap,
+ '|xns' : 'Roo.bootstrap',
+ items : [
+ {
+ xtype : 'Input',
+ placeholder : _this._strings['9bac86fd9f499d47cea5f2fd70d701c1'] /* search for account */,
+ listeners : {
+ render : function (_self)
+ {
+ _this.searchBox = this;
+ },
+ specialkey : function (_self, e)
+ {
+ if(e.keyCode == e.ENTER) {
+ if (_this.member_grid) {
+ _this.member_grid.footer.onClick('first');
+ }
+
+ }
+
+ }
+ },
+ xns : Roo.bootstrap,
+ '|xns' : 'Roo.bootstrap',
+ after : {
+ xtype : 'Button',
+ html : _this._strings['cdb6b6bab1fd18b9dbfe3fb84a5d34ae'] /* <i class="fa fa-search"></i> */,
+ listeners : {
+ click : function (_self, e)
+ {
+ _this.member_grid.footer.onClick('first');
+ }
+ },
+ xns : Roo.bootstrap,
+ '|xns' : 'Roo.bootstrap'
+ }
+ }
+ ]
+ },
+ {
+ xtype : 'Column',
+ cls : 'text-right',
md : 9,
xns : Roo.bootstrap,
'|xns' : 'Roo.bootstrap',
'|xns' : 'Roo.bootstrap'
}
]
- },
- {
- xtype : 'Column',
- cls : 'text-right',
- md : 3,
- xns : Roo.bootstrap,
- '|xns' : 'Roo.bootstrap',
- items : [
- {
- xtype : 'Button',
- cls : 'roo-toolbar-button',
- html : _this._strings['5bc3fd20294c17c9803942958fd7f26d'] /* Show Inactive */,
- name : 'activeButton',
- _offtext : _this._strings['5bc3fd20294c17c9803942958fd7f26d'] /* Show Inactive */,
- _ontext : _this._strings['b15aafc19dc2ba4b788adf77268d8ca4'] /* Hide Inactive */,
- pressed : false,
- weight : 'default',
- listeners : {
- render : function (_self)
- {
- _this.footerActiveBtn = this;
- },
- toggle : function (_self, e, pressed)
- {
- this.setText(this.pressed ? this._ontext : this._offtext);
-
- _this.member_grid.footer.onClick('first');
-
- return;
-
- }
- },
- xns : Roo.bootstrap,
- '|xns' : 'Roo.bootstrap'
- }
- ]
}
]
}
name : 'footer',
pageSize : 25,
xns : Roo.bootstrap,
- '|xns' : 'Roo.bootstrap'
+ '|xns' : 'Roo.bootstrap',
+ buttons : [
+ {
+ xtype : 'Button',
+ cls : 'roo-toolbar-button',
+ html : _this._strings['5bc3fd20294c17c9803942958fd7f26d'] /* Show Inactive */,
+ name : 'activeButton',
+ _offtext : _this._strings['5bc3fd20294c17c9803942958fd7f26d'] /* Show Inactive */,
+ _ontext : _this._strings['b15aafc19dc2ba4b788adf77268d8ca4'] /* Hide Inactive */,
+ pressed : false,
+ weight : 'default',
+ listeners : {
+ render : function (_self)
+ {
+ _this.footerActiveBtn = this;
+ },
+ toggle : function (_self, e, pressed)
+ {
+ this.setText(this.pressed ? this._ontext : this._offtext);
+
+ _this.member_grid.footer.onClick('first');
+
+ return;
+
+ }
+ },
+ xns : Roo.bootstrap,
+ '|xns' : 'Roo.bootstrap'
+ }
+ ]
},
store : {
xtype : 'Store',
options.params.active = 1;
}
+
+ options.params['query[name]'] = _this.searchBox.getValue();
+
options.params['query[in_group]'] = group.data.id;
},