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