MTrackWeb/templates/images/MTrackWeb/MTrackWeb.Tab.TicketView.js
authorAlan Knowles <alan@akbkhome.com>
Mon, 6 Jun 2011 14:40:05 +0000 (22:40 +0800)
committerAlan Knowles <alan@akbkhome.com>
Mon, 6 Jun 2011 14:40:05 +0000 (22:40 +0800)
MTrackWeb/templates/images/MTrackWeb/MTrackWeb.Tab.TicketView.js

index da3d779..cc011ce 100644 (file)
@@ -66,66 +66,6 @@ MTrackWeb.Tab.TicketView = new Roo.XComponent({
                                     {
                                         xtype: 'Column',
                                         xns: Roo.form,
-                                        width : '420px',
-                                        items : [
-                                            {
-                                                xtype: 'FieldSet',
-                                                xns: Roo.form,
-                                                labelAlign : 'top',
-                                                legend : "Summary / Details",
-                                                items : [
-                                                    {
-                                                        xtype: 'TextField',
-                                                        xns: Roo.form,
-                                                        fieldLabel : 'Summary',
-                                                        name : 'summary',
-                                                        width : 400
-                                                    },
-                                                    {
-                                                        xtype: 'TextArea',
-                                                        xns: Roo.form,
-                                                        fieldLabel : 'Description',
-                                                        height : 200,
-                                                        name : 'description',
-                                                        width : 400
-                                                    }
-                                                ]
-                                            },
-                                            {
-                                                xtype: 'FieldSet',
-                                                xns: Roo.form,
-                                                labelAlign : 'top',
-                                                legend : "Add Comment",
-                                                items : [
-                                                    {
-                                                        xtype: 'TextArea',
-                                                        xns: Roo.form,
-                                                        fieldLabel : 'Comment',
-                                                        height : 150,
-                                                        name : 'description',
-                                                        width : 400
-                                                    }
-                                                ]
-                                            },
-                                            {
-                                                xtype: 'FieldSet',
-                                                xns: Roo.form,
-                                                labelAlign : 'top',
-                                                legend : "History",
-                                                items : [
-                                                    {
-                                                        xtype: 'DisplayField',
-                                                        xns: Roo.form,
-                                                        value : "... last few items of history goes in here.."
-                                                    }
-                                                ]
-                                            }
-                                        ]
-                                    },
-                                    {
-                                        xtype: 'Column',
-                                        xns: Roo.form,
-                                        style : 'margin-left: 10px',
                                         width : 200,
                                         items : [
                                             {
@@ -623,12 +563,163 @@ MTrackWeb.Tab.TicketView = new Roo.XComponent({
                                             }
                                         ]
                                     },
+                                    {
+                                        xtype: 'Column',
+                                        xns: Roo.form,
+                                        style : 'margin-left:10px',
+                                        width : '420px',
+                                        items : [
+                                            {
+                                                xtype: 'FieldSet',
+                                                xns: Roo.form,
+                                                labelAlign : 'top',
+                                                legend : "Summary / Details",
+                                                items : [
+                                                    {
+                                                        xtype: 'TextField',
+                                                        xns: Roo.form,
+                                                        fieldLabel : 'Summary',
+                                                        name : 'summary',
+                                                        width : 400
+                                                    },
+                                                    {
+                                                        xtype: 'TextArea',
+                                                        xns: Roo.form,
+                                                        fieldLabel : 'Description',
+                                                        height : 200,
+                                                        name : 'description',
+                                                        width : 400
+                                                    }
+                                                ]
+                                            },
+                                            {
+                                                xtype: 'FieldSet',
+                                                xns: Roo.form,
+                                                labelAlign : 'top',
+                                                legend : "Add Comment",
+                                                items : [
+                                                    {
+                                                        xtype: 'TextArea',
+                                                        xns: Roo.form,
+                                                        fieldLabel : 'Comment',
+                                                        height : 150,
+                                                        name : 'comment',
+                                                        width : 400
+                                                    },
+                                                    {
+                                                        xtype: 'Button',
+                                                        xns: Roo,
+                                                        text : "Add Comment"
+                                                    }
+                                                ]
+                                            },
+                                            {
+                                                xtype: 'FieldSet',
+                                                xns: Roo.form,
+                                                labelAlign : 'top',
+                                                legend : "History",
+                                                items : [
+                                                    {
+                                                        xtype: 'DisplayField',
+                                                        xns: Roo.form,
+                                                        value : "... last few items of history goes in here.."
+                                                    }
+                                                ]
+                                            }
+                                        ]
+                                    },
                                     {
                                         xtype: 'Column',
                                         xns: Roo.form,
                                         style : 'margin-left: 10px',
                                         width : 200,
                                         items : [
+                                            {
+                                                xtype: 'FieldSet',
+                                                xns: Roo.form,
+                                                labelAlign : 'top',
+                                                legend : "Schedule Work",
+                                                items : [
+                                                    {
+                                                        xtype: 'DateField',
+                                                        xns: Roo.form,
+                                                        fieldLabel : 'Tagged to start on'
+                                                    }
+                                                ]
+                                            },
+                                            {
+                                                xtype: 'FieldSet',
+                                                xns: Roo.form,
+                                                labelAlign : 'top',
+                                                legend : "Attachments",
+                                                items : [
+                                                    {
+                                                        xtype: 'TextField',
+                                                        xns: Roo.form,
+                                                        fieldLabel : 'Add File',
+                                                        inputType : 'file',
+                                                        name : 'files[]',
+                                                        qtip : ""
+                                                    }
+                                                ]
+                                            },
+                                            {
+                                                xtype: 'FieldSet',
+                                                xns: Roo.form,
+                                                legend : "Watching",
+                                                items : [
+                                                    {
+                                                        xtype: 'ComboBox',
+                                                        xns: Roo.form,
+                                                        allowBlank : 'false',
+                                                        editable : 'false',
+                                                        emptyText : "Select Person",
+                                                        forceSelection : true,
+                                                        listWidth : 400,
+                                                        loadingText : "Searching...",
+                                                        minChars : 2,
+                                                        pageSize : 20,
+                                                        qtip : "Select Person",
+                                                        selectOnFocus : true,
+                                                        triggerAction : 'all',
+                                                        typeAhead : true,
+                                                        width : 300,
+                                                        tpl : '<div class="x-grid-cell-text x-btn button"><b>{name}</b> </div>',
+                                                        queryParam : '',
+                                                        fieldLabel : 'Person',
+                                                        valueField : 'id',
+                                                        displayField : '',
+                                                        hiddenName : '',
+                                                        name : '',
+                                                        store : {
+                                                            xtype: 'Store',
+                                                            xns: Roo.data,
+                                                            remoteSort : true,
+                                                            sortInfo : { direction : 'ASC', field: 'id' },
+                                                            listeners : {
+                                                                beforeload : function (_self, o){
+                                                                    o.params = o.params || {};
+                                                                    // set more here
+                                                                }
+                                                            },
+                                                            proxy : {
+                                                                xtype: 'HttpProxy',
+                                                                xns: Roo.data,
+                                                                method : 'GET',
+                                                                url : baseURL + '/Roo/Person.php'
+                                                            },
+                                                            reader : {
+                                                                xtype: 'JsonReader',
+                                                                xns: Roo.data,
+                                                                id : 'id',
+                                                                root : 'data',
+                                                                totalProperty : 'total',
+                                                                fields : [{"name":"id","type":"int"},{"name":"name","type":"string"}]
+                                                            }
+                                                        }
+                                                    }
+                                                ]
+                                            },
                                             {
                                                 xtype: 'FieldSet',
                                                 xns: Roo.form,
@@ -671,22 +762,15 @@ MTrackWeb.Tab.TicketView = new Roo.XComponent({
                                             {
                                                 xtype: 'FieldSet',
                                                 xns: Roo.form,
-                                                legend : "Attachments",
+                                                labelAlign : 'top',
+                                                legend : "Logged work",
                                                 items : [
                                                     {
-                                                        xtype: 'TextField',
+                                                        xtype: 'DisplayField',
                                                         xns: Roo.form,
-                                                        fieldLabel : 'Add File',
-                                                        inputType : 'file',
-                                                        name : 'files[]',
-                                                        qtip : ""
+                                                        value : "... timesheet references?..."
                                                     }
                                                 ]
-                                            },
-                                            {
-                                                xtype: 'FieldSet',
-                                                xns: Roo.form,
-                                                legend : "Watching"
                                             }
                                         ]
                                     },