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',
88 displayField : 'name',
90 emptyText : "Select Project",
91 fieldLabel : 'Project',
92 forceSelection : false,
93 hiddenName : 'project_id',
95 loadingText : "Searching...",
97 name : 'project_id_name',
99 qtip : "Select Projects",
100 queryParam : 'query[name]',
101 selectOnFocus : true,
102 tpl : '<div class="x-grid-cell-text x-btn button"><b>{code}</b> {name} </div>',
103 triggerAction : 'all',
111 beforeload : function (_self, o){
112 o.params = o.params || {};
117 sortInfo : { direction : 'ASC', field: 'code' },
122 url : baseURL + '/Roo/Projects.php'
129 totalProperty : 'total',
130 fields : [{"name":"id","type":"int"},{"name":"name","type":"string"}]
137 fieldLabel : 'Shortname',
144 fieldLabel : 'Scmtype',
151 fieldLabel : 'Repopath',
158 fieldLabel : 'Browserurl',
165 fieldLabel : 'Browsertype',
166 name : 'browsertype',
172 fieldLabel : 'Description',
173 name : 'description',
180 fieldLabel : 'Serverurl',
195 xtype: 'LayoutRegion',
203 click : function (_self, e)
214 click : function (_self, e)
220 _this.form.doAction("submit");