1 //<script type="text/javascript">
3 // Auto generated file - created by app.Builder.js- do not edit directly (at present!)
5 Pman.Dialog.MTrackRepos = {
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 mtrack_repos",
42 xtype: 'ContentPanel',
50 actioncomplete : function(_self,action)
52 if (action.type == 'setdata') {
54 this.load({ method: 'GET', params: { '_id' : _this.data.id }});
58 if (action.type == 'load') {
62 if (action.type =='submit') {
68 _this.callback.call(_this, _this.form.getValues());
74 rendered : function (form)
80 style : 'margin:10px;',
81 url : baseURL + '/Roo/mtrack_repos.php',
87 displayField : 'name',
89 emptyText : "Select Project",
90 fieldLabel : 'Project',
91 forceSelection : false,
92 hiddenName : 'project_id',
94 loadingText : "Searching...",
96 name : 'project_id_name',
98 qtip : "Select Projects",
99 queryParam : 'query[name]',
100 selectOnFocus : true,
101 tpl : '<div class="x-grid-cell-text x-btn button"><b>{code}</b>{name} </div>',
102 triggerAction : 'all',
110 beforeload : function (_self, o){
111 o.params = o.params || {};
116 sortInfo : { direction : 'ASC', field: 'code' },
121 url : baseURL + '/Roo/Projects.php'
128 totalProperty : 'total',
129 fields : [{"name":"id","type":"int"},{"name":"name","type":"string"}]
136 fieldLabel : 'Shortname',
143 fieldLabel : 'Scmtype',
150 fieldLabel : 'Repopath',
157 fieldLabel : 'Browserurl',
164 fieldLabel : 'Browsertype',
165 name : 'browsertype',
171 fieldLabel : 'Description',
172 name : 'description',
179 fieldLabel : 'Serverurl',
186 fieldLabel : 'Parent',
193 fieldLabel : 'Clonedfrom',
208 xtype: 'LayoutRegion',
216 click : function (_self, e)
227 click : function (_self, e)
233 _this.form.doAction("submit");