1 //<script type="text/javascript">
3 // Auto generated file - created by app.Builder.js- do not edit directly (at present!)
5 MTrackWeb.Tab.TicketView = new Roo.XComponent({
6 order : '001-MTrackWeb.Tab.TicketView',
9 name : "unnamed module",
16 xtype: 'NestedLayoutPanel',
19 xtype: 'BorderLayout',
23 xtype: 'ContentPanel',
27 title : "Add / Edit Ticket",
28 adjustments : [30, 30],
34 actioncomplete : function(_self,action)
36 if (action.type == 'setdata') {
37 //_this.dialog.el.mask("Loading");
38 //this.load({ method: 'GET', params: { '_id' : _this.data.id }});
41 if (action.type == 'load') {
42 _this.dialog.el.unmask();
45 if (action.type =='submit') {
47 _this.dialog.el.unmask();
51 _this.callback.call(_this, _this.form.getValues());
57 rendered : function (form)
63 style : 'margin:10px;width:1000px;',
64 url : baseURL + '/Roo/mtrack_ticket.php',
75 legend : "Properties",
81 displayField : 'name',
83 emptyText : "Select Projects",
84 fieldLabel : 'Project',
85 forceSelection : true,
86 hiddenName : 'project_id',
88 loadingText : "Searching...",
90 name : 'project_id_name',
92 qtip : "Select Projects",
93 queryParam : 'query[name]',
95 tpl : '<div class="x-grid-cell-text x-btn button"><b>{name}</b> </div>',
96 triggerAction : 'all',
104 sortInfo : { direction : 'ASC', field: 'id' },
106 beforeload : function (_self, o){
107 o.params = o.params || {};
115 url : baseURL + '/Roo/Projects.php'
122 totalProperty : 'total',
123 fields : [{"name":"id","type":"int"},{"name":"name","type":"string"}]
130 allowBlank : 'false',
131 displayField : 'name',
133 emptyText : "Select mtrack_milestone",
134 fieldLabel : 'Milestone',
135 forceSelection : true,
136 hiddenName : 'milestone_id',
138 loadingText : "Searching...",
140 name : 'milestone_id_name',
142 qtip : "Select mtrack_milestone",
143 queryParam : 'query[name]',
144 selectOnFocus : true,
145 tpl : '<div class="x-grid-cell-text x-btn button"><b>{name}</b> </div>',
146 triggerAction : 'all',
154 sortInfo : { direction : 'ASC', field: 'id' },
156 beforeload : function (_self, o){
157 o.params = o.params || {};
165 url : baseURL + '/Roo/mtrack_milestone.php'
172 totalProperty : 'total',
173 fields : [{"name":"id","type":"int"},{"name":"name","type":"string"}]
180 allowBlank : 'false',
181 displayField : 'etype',
183 emptyText : "Select core_enum",
184 fieldLabel : 'Priority',
185 forceSelection : true,
186 hiddenName : 'priority_id',
188 loadingText : "Searching...",
190 name : 'priority_id_etype',
192 qtip : "Select core_enum",
193 queryParam : 'query[etype]',
194 selectOnFocus : true,
195 tpl : '<div class="x-grid-cell-text x-btn button"><b>{etype}</b> </div>',
196 triggerAction : 'all',
204 sortInfo : { direction : 'ASC', field: 'id' },
206 beforeload : function (_self, o){
207 o.params = o.params || {};
215 url : baseURL + '/Roo/core_enum.php'
222 totalProperty : 'total',
223 fields : [{"name":"id","type":"int"},{"name":"etype","type":"string"}]
230 allowBlank : 'false',
231 displayField : 'etype',
233 emptyText : "Select core_enum",
234 fieldLabel : 'Severity',
235 forceSelection : true,
236 hiddenName : 'severity_id',
238 loadingText : "Searching...",
240 name : 'severity_id_etype',
242 qtip : "Select core_enum",
243 queryParam : 'query[etype]',
244 selectOnFocus : true,
245 tpl : '<div class="x-grid-cell-text x-btn button"><b>{etype}</b> </div>',
246 triggerAction : 'all',
254 sortInfo : { direction : 'ASC', field: 'id' },
256 beforeload : function (_self, o){
257 o.params = o.params || {};
265 url : baseURL + '/Roo/core_enum.php'
272 totalProperty : 'total',
273 fields : [{"name":"id","type":"int"},{"name":"etype","type":"string"}]
280 allowBlank : 'false',
281 displayField : 'etype',
283 emptyText : "Select core_enum",
284 fieldLabel : 'Classification',
285 forceSelection : true,
286 hiddenName : 'classification_id',
288 loadingText : "Searching...",
290 name : 'classification_id_etype',
292 qtip : "Select core_enum",
293 queryParam : 'query[etype]',
294 selectOnFocus : true,
295 tpl : '<div class="x-grid-cell-text x-btn button"><b>{etype}</b> </div>',
296 triggerAction : 'all',
304 sortInfo : { direction : 'ASC', field: 'id' },
306 beforeload : function (_self, o){
307 o.params = o.params || {};
315 url : baseURL + '/Roo/core_enum.php'
322 totalProperty : 'total',
323 fields : [{"name":"id","type":"int"},{"name":"etype","type":"string"}]
333 legend : "Status / Resources",
338 allowBlank : 'false',
339 displayField : 'name',
341 emptyText : "Select Person",
342 fieldLabel : 'Developer',
343 forceSelection : true,
344 hiddenName : 'developer_id',
346 loadingText : "Searching...",
348 name : 'developer_id_name',
350 qtip : "Select Person",
351 queryParam : 'query[name]',
352 selectOnFocus : true,
353 tpl : '<div class="x-grid-cell-text x-btn button"><b>{name}</b> </div>',
354 triggerAction : 'all',
362 sortInfo : { direction : 'ASC', field: 'id' },
364 beforeload : function (_self, o){
365 o.params = o.params || {};
373 url : baseURL + '/Roo/Person.php'
380 totalProperty : 'total',
381 fields : [{"name":"id","type":"int"},{"name":"name","type":"string"}]
388 allowBlank : 'false',
389 displayField : 'name',
391 emptyText : "Select Person",
392 fieldLabel : 'Owner',
393 forceSelection : true,
394 hiddenName : 'owner_id',
396 loadingText : "Searching...",
398 name : 'owner_id_name',
400 qtip : "Select Person",
401 queryParam : 'query[name]',
402 selectOnFocus : true,
403 tpl : '<div class="x-grid-cell-text x-btn button"><b>{name}</b> </div>',
404 triggerAction : 'all',
412 sortInfo : { direction : 'ASC', field: 'id' },
414 beforeload : function (_self, o){
415 o.params = o.params || {};
423 url : baseURL + '/Roo/Person.php'
430 totalProperty : 'total',
431 fields : [{"name":"id","type":"int"},{"name":"name","type":"string"}]
438 allowBlank : 'false',
439 displayField : 'etype',
441 emptyText : "Select core_enum",
442 fieldLabel : 'Status',
443 forceSelection : true,
444 hiddenName : 'status',
446 loadingText : "Searching...",
448 name : 'status_etype',
450 qtip : "Select core_enum",
451 queryParam : 'query[etype]',
452 selectOnFocus : true,
453 tpl : '<div class="x-grid-cell-text x-btn button"><b>{etype}</b> </div>',
454 triggerAction : 'all',
462 sortInfo : { direction : 'ASC', field: 'id' },
464 beforeload : function (_self, o){
465 o.params = o.params || {};
473 url : baseURL + '/Roo/core_enum.php'
480 totalProperty : 'total',
481 fields : [{"name":"id","type":"int"},{"name":"etype","type":"string"}]
488 allowBlank : 'false',
489 displayField : 'etype',
491 emptyText : "Select core_enum",
492 fieldLabel : 'Resolution',
493 forceSelection : true,
494 hiddenName : 'resolution_id',
496 loadingText : "Searching...",
498 name : 'resolution_id_etype',
500 qtip : "Select core_enum",
501 queryParam : 'query[etype]',
502 selectOnFocus : true,
503 tpl : '<div class="x-grid-cell-text x-btn button"><b>{etype}</b> </div>',
504 triggerAction : 'all',
512 sortInfo : { direction : 'ASC', field: 'id' },
514 beforeload : function (_self, o){
515 o.params = o.params || {};
523 url : baseURL + '/Roo/core_enum.php'
530 totalProperty : 'total',
531 fields : [{"name":"id","type":"int"},{"name":"etype","type":"string"}]
536 xtype: 'NumberField',
538 style : 'align:right;',
539 fieldLabel : 'Estimated',
544 xtype: 'NumberField',
546 fieldLabel : 'Spent',
551 xtype: 'DisplayField',
553 fieldLabel : 'Created',
554 name : 'created_when'
557 xtype: 'DisplayField',
559 fieldLabel : 'Last Updated',
560 name : 'updated_when'
569 style : 'margin-left:10px',
576 legend : "Summary / Details",
581 fieldLabel : 'Summary',
588 fieldLabel : 'Description',
590 name : 'description',
599 legend : "Add Comment",
604 fieldLabel : 'Comment',
623 xtype: 'DisplayField',
625 value : "... last few items of history goes in here.."
634 style : 'margin-left: 10px',
641 legend : "Schedule Work",
646 fieldLabel : 'Tagged to start on'
654 legend : "Attachments",
659 fieldLabel : 'Add File',
675 displayField : 'name',
676 emptyText : "Select Person",
677 fieldLabel : 'Person',
678 forceSelection : true,
679 hiddenName : 'watcher_add_id',
681 loadingText : "Searching...",
683 name : 'watcher_add',
685 qtip : "Select Person",
686 queryParam : 'query[name]',
687 selectOnFocus : true,
688 tpl : '<div class="x-grid-cell-text x-btn button"><b>{name}</b> </div>',
689 triggerAction : 'all',
697 sortInfo : { direction : 'ASC', field: 'id' },
699 beforeload : function (_self, o){
700 o.params = o.params || {};
708 url : baseURL + '/Roo/Person.php'
715 totalProperty : 'total',
716 fields : [{"name":"id","type":"int"},{"name":"name","type":"string"}]
721 xtype: 'DisplayField',
723 value : "..existing watchers..."
730 labelSeparator : ' ',
732 legend : "Change Status",
737 boxLabel : 'Leave status as NEW',
743 boxLabel : 'Leave status as NEW',
749 boxLabel : 'Leave status as NEW',
755 boxLabel : 'Leave status as NEW',
761 boxLabel : 'Leave status as NEW',
770 legend : "Logged work",
773 xtype: 'DisplayField',
775 value : "... timesheet references?..."
796 text : "Save Changes"
811 xtype: 'ContentPanel',
815 title : "Full history"
819 xtype: 'LayoutRegion',
823 xtype: 'LayoutRegion',
827 xtype: 'LayoutRegion',