1 //<script type="text/javascript">
3 // Auto generated file - created by app.Builder.js- do not edit directly (at present!)
5 Roo.namespace('Pman.Tab');
7 Pman.Tab.AdminOAuthClient = new Roo.XComponent({
10 '16f63df432feae9fab6840eabc9d3704' :"No Clients found",
11 'ec211f7c20af43e742bf2570c3cb84f9' :"Add",
12 '76525f0f34b48475e5ca33f71d296f3b' :"Client ID",
13 '27499763cc523271e74f32ff4f740a7f' :"Redirect URI",
14 '1063e38cb53d94d386f21227fcd84717' :"Remove",
15 '0c95cb44ad29b66991e47d3e27fecadc' :"Oauth2 Clients",
16 '734082edf44417dd19cc65943aa65c36' :"Client Secret"
19 part : ["Admin", "OAuthClient" ],
20 order : '900-Pman.Tab.AdminOAuthClient',
22 parent : 'Pman.Tab.Admin',
23 name : "unnamed module",
32 title : _this._strings['0c95cb44ad29b66991e47d3e27fecadc'] /* Oauth2 Clients */,
35 xtype : 'NestedLayoutPanel',
39 xtype : 'BorderLayout',
45 xtype : 'LayoutRegion'
53 tableName : 'core_oauth_clients',
54 title : _this._strings['0c95cb44ad29b66991e47d3e27fecadc'] /* Oauth2 Clients */,
59 activate : function() {
63 _this.grid.footer.onClick('first');
68 autoExpandColumn : 'redirect_uri',
75 afteredit : function (e)
77 if(e.originalValue == e.value || !e.value.length){
87 if (_this.panel.active) {
88 this.footer.onClick('first');
94 emptyMsg : _this._strings['16f63df432feae9fab6840eabc9d3704'] /* No Clients found */,
98 xtype : 'PagingToolbar'
106 cls : 'x-btn-text-icon',
107 icon : Roo.rootURL + 'images/default/dd/drop-add.gif',
108 text : _this._strings['ec211f7c20af43e742bf2570c3cb84f9'] /* Add */,
110 '|xns' : 'Roo.Toolbar',
116 var nr = _this.grid.ds.reader.newRow({
123 _this.grid.stopEditing();
124 _this.grid.ds.insert(_this.grid.ds.getCount(), nr);
125 _this.grid.startEditing(_this.grid.ds.getCount()-1, 0);
130 cls : 'x-btn-text-icon',
131 icon : rootURL + '/Pman/templates/images/trash.gif',
132 text : _this._strings['1063e38cb53d94d386f21227fcd84717'] /* Remove */,
134 '|xns' : 'Roo.Toolbar',
139 var cs = _this.grid.getSelectionModel().getSelectedCell();
141 Roo.MessageBox.alert("Error", "Select a cell");
144 _this.grid.stopEditing();
146 var r = _this.grid.ds.getAt(cs[0]);
148 Roo.MessageBox.confirm("Confirm", "Are you sure you want to delete this client?", function (v){
154 url : baseURL + '/Roo/Core_oauth_clients',
159 success : function(res) {
160 _this.grid.footer.onClick('refresh');
171 sortInfo : { field : 'client_id', direction: 'ASC' },
176 beforeload : function (_self, o){
177 o.params = o.params || {};
180 update : function (_self, record, operation)
182 if (operation != Roo.data.Record.COMMIT) {
186 if (!record.data.client_id.length || !record.data.client_secret.length) {
191 url : baseURL + '/Roo/Core_oauth_clients',
195 client_id : record.data.client_id,
196 client_secret : record.data.client_secret,
197 redirect_uri : record.data.redirect_uri
199 success : function(res) {
200 _this.grid.footer.onClick('refresh');
208 url : baseURL + '/Roo/Core_oauth_clients',
224 'name': 'client_secret',
228 'name': 'redirect_uri',
234 totalProperty : 'total',
242 dataIndex : 'client_id',
243 header : _this._strings['76525f0f34b48475e5ca33f71d296f3b'] /* Client ID */,
244 renderer : function(v) {
245 return String.format('{0}', v ? v : '');
250 xtype : 'ColumnModel',
254 xtype : 'GridEditor',
264 dataIndex : 'client_secret',
265 header : _this._strings['734082edf44417dd19cc65943aa65c36'] /* Client Secret */,
266 renderer : function(v) {
267 return String.format('{0}', v ? v : '');
272 xtype : 'ColumnModel',
276 xtype : 'GridEditor',
286 dataIndex : 'redirect_uri',
287 header : _this._strings['27499763cc523271e74f32ff4f740a7f'] /* Redirect URI */,
288 renderer : function(v) {
289 return String.format('{0}', v ? v : '');
294 xtype : 'ColumnModel',
298 xtype : 'GridEditor',