sync
[Pman.Admin] / Pman.Tab.AdminSettings.js
1 //<script type="text/javascript">
2
3 // Auto generated file - created by app.Builder.js- do not edit directly (at present!)
4
5 Roo.namespace('Pman.Tab');
6
7 Pman.Tab.AdminSettings = new Roo.XComponent({
8
9  _strings : {
10   '7e17f8478e121357b78646ca5b5d5ac9' :"Displaying Settings  {0} - {1} of {2}",
11   '689202409e48743b914713f96d93947c' :"Value",
12   'e4709a73a287a5f033f5b1b5142cb74d' :"System Settings",
13   '662de0725ac8055bff7edae51fbf3c78' :"No Settings Found",
14   'f2a6c498fb90ee345d997f888fce3b18' :"Delete",
15   'e55f75a29310d7b60f7ac1d390c8ae42' :"Module",
16   '49ee3087348e8d44e1feda1917443987' :"Name",
17   'b5a7adde1af5c87d7fd797b6245c2a39' :"Description"
18  },
19
20   part     :  ["Admin", "Settings" ],
21   order    : '600-Pman.Tab.AdminSettings',
22   region   : 'center',
23   parent   : 'Pman.Tab.Admin',
24   name     : "unnamed module",
25   disabled : false, 
26   permname : '', 
27   _tree : function(_data)
28   {
29    var _this = this;
30    var MODULE = this;
31    return {
32    xtype : 'GridPanel',
33    background : true,
34    fitContainer : true,
35    fitToframe : true,
36    region : 'center',
37    title : _this._strings['e4709a73a287a5f033f5b1b5142cb74d'] /* System Settings */,
38    listeners : {
39     activate : function() {
40          _this.panel = this;
41       
42          if (_this.grid) {
43              _this.grid.footer.onClick('first');
44          }
45      }
46    },
47    xns : Roo,
48    '|xns' : 'Roo',
49    grid : {
50     xtype : 'Grid',
51     autoExpandColumn : 'val',
52     loadMask : true,
53     listeners : {
54      render : function() 
55       {
56           _this.grid = this; 
57           //_this.dialog = Pman.Dialog.FILL_IN
58           if (_this.panel.active) {
59              this.footer.onClick('first');
60           }
61       },
62      rowdblclick : function (_self, rowIndex, e)
63       {
64           if (!_this.dialog) {
65                return;
66            }
67           _this.dialog.show( this.getDataSource().getAt(rowIndex).data, function() {
68               _this.grid.footer.onClick('refresh');
69           }); 
70       }
71     },
72     xns : Roo.grid,
73     '|xns' : 'Roo.grid',
74     footer : {
75      xtype : 'PagingToolbar',
76      displayInfo : true,
77      displayMsg : _this._strings['7e17f8478e121357b78646ca5b5d5ac9'] /* Displaying Settings  {0} - {1} of {2} */,
78      emptyMsg : _this._strings['662de0725ac8055bff7edae51fbf3c78'] /* No Settings Found */,
79      pageSize : 25,
80      xns : Roo,
81      '|xns' : 'Roo'
82     },
83     toolbar : {
84      xtype : 'Toolbar',
85      xns : Roo,
86      '|xns' : 'Roo',
87      items  : [
88       {
89        xtype : 'Fill',
90        xns : Roo.Toolbar,
91        '|xns' : 'Roo.Toolbar'
92       },
93       {
94        xtype : 'Button',
95        cls : 'x-btn-text-icon',
96        icon : rootURL + '/Pman/templates/images/trash.gif',
97        text : _this._strings['f2a6c498fb90ee345d997f888fce3b18'] /* Delete */,
98        listeners : {
99         click : function()
100          {
101               Pman.genericDelete(_this, 'core_setting'); 
102          }
103        },
104        xns : Roo.Toolbar,
105        '|xns' : 'Roo.Toolbar'
106       }
107      ]
108     },
109     dataSource : {
110      xtype : 'Store',
111      remoteSort : true,
112      sortInfo : { field : 'name', direction: 'ASC' },
113      listeners : {
114       beforeload : function (_self, o)
115        {
116          
117            o.params = o.params ? o.params : {};
118            
119           
120        }
121      },
122      xns : Roo.data,
123      '|xns' : 'Roo.data',
124      proxy : {
125       xtype : 'HttpProxy',
126       method : 'GET',
127       url : baseURL + '/Roo/core_setting',
128       xns : Roo.data,
129       '|xns' : 'Roo.data'
130      },
131      reader : {
132       xtype : 'JsonReader',
133       id : 'id',
134       root : 'data',
135       totalProperty : 'total',
136       xns : Roo.data,
137       '|xns' : 'Roo.data'
138      }
139     },
140     sm : {
141      xtype : 'RowSelectionModel',
142      singleSelect : true,
143      listeners : {
144       afterselectionchange : function (_self)
145        {
146            // load project members.
147        }
148      },
149      xns : Roo.grid,
150      '|xns' : 'Roo.grid'
151     },
152     colModel : [
153      {
154       xtype : 'ColumnModel',
155       dataIndex : 'module',
156       header : _this._strings['e55f75a29310d7b60f7ac1d390c8ae42'] /* Module */,
157       sortable : true,
158       width : 120,
159       xns : Roo.grid,
160       '|xns' : 'Roo.grid'
161      },
162      {
163       xtype : 'ColumnModel',
164       dataIndex : 'name',
165       header : _this._strings['49ee3087348e8d44e1feda1917443987'] /* Name */,
166       renderer : function(v) { return String.format('{0}', v); },
167       width : 150,
168       xns : Roo.grid,
169       '|xns' : 'Roo.grid'
170      },
171      {
172       xtype : 'ColumnModel',
173       dataIndex : 'description',
174       header : _this._strings['b5a7adde1af5c87d7fd797b6245c2a39'] /* Description */,
175       renderer : function(v) { return String.format('{0}', v); },
176       sortable : true,
177       width : 150,
178       xns : Roo.grid,
179       '|xns' : 'Roo.grid'
180      },
181      {
182       xtype : 'ColumnModel',
183       dataIndex : 'val',
184       header : _this._strings['689202409e48743b914713f96d93947c'] /* Value */,
185       renderer : function(v) { return String.format('{0}', v); },
186       sortable : true,
187       width : 200,
188       xns : Roo.grid,
189       '|xns' : 'Roo.grid'
190      }
191     ]
192    }
193   };  }
194 });