// Auto generated file - created by app.Builder.js- do not edit directly (at present!)
MTrackWeb.Layout = new Roo.XComponent({
+ part : ["MTrackWeb","Layout"],
order : '001-MTrackWeb.Layout',
region : 'center',
parent : false,
name : "unnamed module",
disabled : false,
- tree : function()
+ permname : '',
+ _tree : function()
{
var _this = this;
var MODULE = this;
return {
xtype: 'NestedLayoutPanel',
xns: Roo,
+ listeners : {
+ activate : function (_self)
+ {
+
+ }
+ },
+ getProjectName : function() {
+ return MTrack.projectCombo.el.dom.value;
+ },
+ getProjectId : function() {
+ return MTrack.projectCombo.getValue();
+ },
layout : {
xtype: 'BorderLayout',
xns: Roo,
region : 'north',
content : '<div class="banner-username"></div>' +
'<div id="banner">' +
- '<a href="' + rootURL + '"><img style="float: left;margin-right: 10px;" src="' +
- rootURL + '/Roojscom/templates/images/roojsorg_logo-55.png" width="150" height="55"></a>' +
+ '<a href="' + baseURL + '"><img style="float: left;margin-right: 10px;" src="' +
+ '/Roojscom/templates/images/roojsorg_logo-55.png" width="150" height="55"></a>' +
'<div class="banner-title">Project Tracker</div>'+
'</div>'
},
{
xtype: 'ContentPanel',
xns: Roo,
- region : 'north',
- content : '<div class="banner-username"></div>' +
- '<div id="banner">' +
- '<a href="' + rootURL + '"><img style="float: left;margin-right: 10px;" src="' +
- rootURL + '/Roojscom/templates/images/roojsorg_logo-55.png" width="150" height="55"></a>' +
- '<div class="banner-title">Project Tracker</div>'+
- '</div>'
+ region : 'south',
+ content : ' <div id="footer">' +
+ '<div class="navfoot">' +
+ 'Powered by <a href="http://www.roojs.com/mtrack/index.php/Browse/default/web.mtrack">web.mtrack</a>' +
+ ' based on Wez\'s ' +
+ '<a href="http://bitbucket.org/wez/mtrack/">mtrack</a>' +
+ '</div>' +
+ '</div>'
}
],
north : {
xtype: 'ComboBox',
xns: Roo.form,
listeners : {
- beforeselect : function (combo, record, index)
+ beforeselect : function (combo, rec, index)
{
// this should post to the system, - to register active Project..
// it's not really needed in new version... but done for compat.
render : function (_self)
{
-
+ _this.projectCombo = _self;
+ // BC..
MTrack.projectCombo = _self;
// set the default value to our current project..
pageSize : 40,
qtip : "Select Project",
selectOnFocus : true,
- tpl : '<div class="x-grid-cell-text x-btn button"><b>{code}</b> {name} </div>',
+ tpl : '<div class="x-grid-cell-text x-btn">{name} - <b>{code}</b> </div>',
triggerAction : 'all',
typeAhead : true,
valueField : 'id',
xtype: 'HttpProxy',
xns: Roo.data,
method : 'GET',
- url : baseURL + '/Projects.php'
+ url : baseURL + '/Roo/core_project.php'
},
reader : {
xtype: 'JsonReader',