MTrackWeb/templates/images/MTrackWeb/MTrackWeb.Layout.js
[web.mtrack] / MTrackWeb / templates / images / MTrackWeb / MTrackWeb.Layout.js
1 //<script type="text/javascript">
2
3 // Auto generated file - created by app.Builder.js- do not edit directly (at present!)
4
5 MTrackWeb.Layout = new Roo.XComponent({
6     order    : '001-MTrackWeb.Layout',
7     region   : 'center',
8     parent   : false,
9     name     : "unnamed module",
10     disabled : false, 
11     tree : function()
12     {
13         var _this = this;
14         var MODULE = this;
15         return {
16             xtype: 'NestedLayoutPanel',
17             xns: Roo,
18             layout : {
19                 xtype: 'BorderLayout',
20                 xns: Roo,
21                 items : [
22                     {
23                         xtype: 'ContentPanel',
24                         xns: Roo,
25                         region : 'north',
26                         content : '<div class="banner-username"></div>' + 
27                                 '<div id="banner">' +
28                                     '<a href="' + rootURL + '"><img style="float: left;margin-right: 10px;" src="' +
29                                         rootURL + '/Roojscom/templates/images/roojsorg_logo-55.png" width="150" height="55"></a>' +
30                                     '<div class="banner-title">Project Tracker</div>'+
31                                 '</div>'
32                     },
33                     {
34                         xtype: 'ContentPanel',
35                         xns: Roo,
36                         region : 'center',
37                         title : "test"
38                     }
39                 ],
40                 north : {
41                     xtype: 'LayoutRegion',
42                     xns: Roo,
43                     height : 52,
44                     titlebar : false
45                 },
46                 center : {
47                     xtype: 'LayoutRegion',
48                     xns: Roo,
49                     alwaysShowTabs : true,
50                     tabPosition : 'top',
51                     toolbar : {
52                         xtype: 'Toolbar',
53                         xns: Roo,
54                         items : [
55                             {
56                                 xtype: 'Fill',
57                                 xns: Roo.Toolbar
58                             },
59                             {
60                                 xtype: 'TextItem',
61                                 xns: Roo.Toolbar,
62                                 text : "Project:"
63                             },
64                             {
65                                 xtype: 'ComboBox',
66                                 xns: Roo.form,
67                                 allowBlank : 'false',
68                                 editable : 'false',
69                                 emptyText : "Select Projects",
70                                 forceSelection : true,
71                                 listWidth : 400,
72                                 loadingText : "Searching...",
73                                 minChars : 2,
74                                 pageSize : 20,
75                                 qtip : "Select Projects",
76                                 selectOnFocus : true,
77                                 triggerAction : 'all',
78                                 typeAhead : true,
79                                 width : 300,
80                                 tpl : '<div class="x-grid-cell-text x-btn button"><b>{name}</b> </div>',
81                                 queryParam : '',
82                                 fieldLabel : 'Projects',
83                                 valueField : 'id',
84                                 displayField : '',
85                                 hiddenName : '',
86                                 name : '',
87                                 store : {
88                                     xtype: 'Store',
89                                     xns: Roo.data,
90                                     remoteSort : true,
91                                     sortInfo : { direction : 'ASC', field: 'id' },
92                                     listeners : {
93                                         beforeload : function (_self, o){
94                                             o.params = o.params || {};
95                                             // set more here
96                                         }
97                                     },
98                                     proxy : {
99                                         xtype: 'HttpProxy',
100                                         xns: Roo.data,
101                                         method : 'GET',
102                                         url : baseURL + '/Roo/Projects.php'
103                                     },
104                                     reader : {
105                                         xtype: 'JsonReader',
106                                         xns: Roo.data,
107                                         id : 'id',
108                                         root : 'data',
109                                         totalProperty : 'total',
110                                         fields : [{"name":"id","type":"int"},{"name":"name","type":"string"}]
111                                     }
112                                 }
113                             },
114                             {
115                                 xtype: 'Button',
116                                 xns: Roo.Toolbar,
117                                 text : "test"
118                             }
119                         ]
120                     }
121                 },
122                 south : {
123                     xtype: 'LayoutRegion',
124                     xns: Roo,
125                     height : 30,
126                     titlebar : false
127                 }
128             }
129         };
130     }
131 });