1 //<script type="text/javascript">
3 // Auto generated file - created by app.Builder.js- do not edit directly (at present!)
5 Pman.Dialog.MTrackMilestone = {
10 show : function(data, cb)
18 this.dialog.show(this.data._el);
21 this.form.setValues(data);
22 this.form.fireEvent('actioncomplete', this.form, { type: 'setdata', data: data });
30 this.dialog = Roo.factory({
31 xtype: 'LayoutDialog',
38 title : "Edit / Create Milestone",
42 xtype: 'ContentPanel',
50 actioncomplete : function(_self,action)
52 if (action.type == 'setdata') {
54 this.load({ method: 'GET', params: { '_id' : _this.data.id }});
59 if (action.type == 'load') {
63 if (action.type =='submit') {
69 _this.callback.call(_this, _this.form.getValues());
75 rendered : function (form)
81 style : 'margin:10px;',
82 url : baseURL + '/Roo/mtrack_milestone.php',
95 displayField : 'name',
97 emptyText : "Select Project",
98 fieldLabel : 'Project',
99 forceSelection : true,
100 hiddenName : 'project_id',
102 loadingText : "Searching...",
104 name : 'project_id_name',
106 qtip : "Select Projects",
107 queryParam : 'query[name]',
108 selectOnFocus : true,
109 tpl : '<div class="x-grid-cell-text x-btn button"><b>{code}</b> {name}</div>',
110 triggerAction : 'all',
117 beforeload : function (_self, o){
118 o.params = o.params || {};
123 sortInfo : { direction : 'ASC', field: 'code' },
128 url : baseURL + '/Roo/Projects.php'
135 totalProperty : 'total',
136 fields : [{"name":"id","type":"int"},{"name":"name","type":"string"}]
143 fieldLabel : 'Description',
144 name : 'description',
151 altFormats : 'Y-m-d H:i:s',
152 fieldLabel : 'Startdate',
160 altFormats : 'Y-m-d H:i:s',
161 fieldLabel : 'Duedate',
169 altFormats : 'Y-m-d H:i:s',
170 fieldLabel : 'Completed',
178 boxLabel : 'On hold',
179 fieldLabel : 'Status',
195 xtype: 'LayoutRegion',
203 click : function (_self, e)
214 click : function (_self, e)
220 _this.form.doAction("submit");