MTrackWeb.Tab.TicketView = new Roo.XComponent({
order : '001-MTrackWeb.Tab.TicketView',
region : 'center',
- parent : false,
- name : "unnamed module",
+ parent : 'Pman',
+ name : "TicketView",
disabled : false,
tree : function()
{
return {
xtype: 'NestedLayoutPanel',
xns: Roo,
+ region : 'center',
title : "Tickets",
layout : {
xtype: 'BorderLayout',
xtype: 'Toolbar',
xns: Roo,
items : [
+ {
+ xtype: 'Fill',
+ xns: Roo.Toolbar
+ },
{
xtype: 'Button',
xns: Roo.Toolbar,
- text : "Add",
- cls : 'x-btn-text-icon',
- icon : Roo.rootURL + 'images/default/dd/drop-add.gif',
listeners : {
click : function()
{
_this.grid.footer.onClick('first');
});
}
- }
+ },
+ cls : 'x-btn-text-icon',
+ text : "Create Ticket",
+ icon : Roo.rootURL + 'images/default/dd/drop-add.gif'
},
{
xtype: 'Button',
{
xtype: 'Button',
xns: Roo.Toolbar,
- text : "Delete",
- cls : 'x-btn-text-icon',
- icon : rootURL + '/Pman/templates/images/trash.gif',
listeners : {
click : function()
{
Pman.genericDelete(_this, 'mtrack_ticket');
}
- }
+ },
+ cls : 'x-btn-text-icon',
+ text : "Quick Close",
+ icon : rootURL + '/Pman/templates/images/trash.gif'
}
]
},
{
xtype: 'ColumnModel',
xns: Roo.grid,
- header : 'Description',
- width : 200,
- dataIndex : 'description',
+ header : 'Project',
+ width : 75,
+ dataIndex : 'project_id',
+ renderer : function(v) { return String.format('{0}', v); }
+ },
+ {
+ xtype: 'ColumnModel',
+ xns: Roo.grid,
+ header : 'Milestone',
+ width : 75,
+ dataIndex : 'milestone_id',
renderer : function(v) { return String.format('{0}', v); }
},
{
dataIndex : 'classification_id',
renderer : function(v) { return String.format('{0}', v); }
},
- {
- xtype: 'ColumnModel',
- xns: Roo.grid,
- header : 'Status',
- width : 75,
- dataIndex : 'status',
- renderer : function(v) { return String.format('{0}', v); }
- },
{
xtype: 'ColumnModel',
xns: Roo.grid,
dataIndex : 'spent',
renderer : function(v) { return String.format('{0}', v); }
},
- {
- xtype: 'ColumnModel',
- xns: Roo.grid,
- header : 'X fieldname',
- width : 200,
- dataIndex : 'x_fieldname',
- renderer : function(v) { return String.format('{0}', v); }
- },
{
xtype: 'ColumnModel',
xns: Roo.grid,
width : 75,
dataIndex : 'developer_id',
renderer : function(v) { return String.format('{0}', v); }
- },
- {
- xtype: 'ColumnModel',
- xns: Roo.grid,
- header : 'Milestone',
- width : 75,
- dataIndex : 'milestone_id',
- renderer : function(v) { return String.format('{0}', v); }
}
]
}
xtype: 'HttpProxy',
xns: Roo.data,
method : 'GET',
- url : baseURL + '/Roo/Projects.php'
+ url : baseURL + '/Roo/core_project.php'
},
reader : {
xtype: 'JsonReader',
collapsible : true,
tabPosition : 'top',
title : "Ticket Details",
- width : 850
+ width : 550
},
center : {
xtype: 'LayoutRegion',