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                                 alwaysQuery : true,
69                                 displayField : 'name',
70                                 editable : false,
71                                 emptyText : "Select Project",
72                                 forceSelection : true,
73                                 listWidth : 400,
74                                 loadingText : "Searching...",
75                                 pageSize : 40,
76                                 qtip : "Select Project",
77                                 queryParam : '',
78                                 selectOnFocus : true,
79                                 tpl : '<div class="x-grid-cell-text x-btn button"><b>{name}</b> </div>',
80                                 triggerAction : 'all',
81                                 typeAhead : true,
82                                 valueField : 'id',
83                                 width : 300,
84                                 store : {
85                                     xtype: 'Store',
86                                     xns: Roo.data,
87                                     remoteSort : true,
88                                     sortInfo : { direction : 'ASC', field: 'id' },
89                                     listeners : {
90                                         beforeload : function (_self, o){
91                                             o.params = o.params || {};
92                                             // set more here
93                                         }
94                                     },
95                                     proxy : {
96                                         xtype: 'HttpProxy',
97                                         xns: Roo.data,
98                                         method : 'GET',
99                                         url : baseURL + '/Roo/Projects.php'
100                                     },
101                                     reader : {
102                                         xtype: 'JsonReader',
103                                         xns: Roo.data,
104                                         id : 'id',
105                                         root : 'data',
106                                         totalProperty : 'total',
107                                         fields : [{"name":"id","type":"int"},{"name":"name","type":"string"}]
108                                     }
109                                 }
110                             },
111                             {
112                                 xtype: 'Button',
113                                 xns: Roo.Toolbar,
114                                 text : "test"
115                             }
116                         ]
117                     }
118                 },
119                 south : {
120                     xtype: 'LayoutRegion',
121                     xns: Roo,
122                     height : 30,
123                     titlebar : false
124                 }
125             }
126         };
127     }
128 });