php warnings
[Pman.MTrack] / Pman.Tab.MTrackRepos.js
index c227083..60e46ec 100644 (file)
@@ -1 +1,257 @@
-0
\ No newline at end of file
+//<script type="text/javascript">
+
+// Auto generated file - created by app.Builder.js- do not edit directly (at present!)
+
+Roo.namespace('Pman.Tab');
+
+Pman.Tab.MTrackRepos = new Roo.XComponent({
+
+ _strings : {
+  'ec211f7c20af43e742bf2570c3cb84f9' :"Add",
+  '9e727fdd3aec8274f46685441900280d' :"Project",
+  '7dce122004969d56ae2e0245cb754d35' :"Edit",
+  '73cdcee8881d309dd256134f98347769' :"Repopath",
+  '30269022e9d8f51beaabb52e5d0de2b7' :"Parent",
+  'de1f88f6f7789baf4d35f2919f100fc3' :"Repositories",
+  '97ec8018c492164da252cbaf95f0fa98' :"Shortname",
+  'a4cf31f8bea7da20524198fbe5c0db2a' :"No mtrack_repos found",
+  'f1c61eb7938469f5aa08964c8b2be862' :"Scmtype",
+  'b5a7adde1af5c87d7fd797b6245c2a39' :"Description",
+  '6c47888cc8867737f167632508b2f58b' :"Displaying mtrack_repos{0} - {1} of {2}"
+ },
+
+  part     :  ["MTrack", "Repos" ],
+  order    : '001-Pman.Tab.MTrackRepos',
+  region   : 'center',
+  parent   : 'Pman.Tab.MTrack',
+  name     : "Pman.Tab.MTrackRepos",
+  disabled : false, 
+  permname : '', 
+  _tree : function(_data)
+  {
+   var _this = this;
+   var MODULE = this;
+   return {
+   xtype : 'GridPanel',
+   background : true,
+   fitContainer : true,
+   fitToframe : true,
+   region : 'center',
+   tableName : 'mtrack_repos',
+   title : _this._strings['de1f88f6f7789baf4d35f2919f100fc3'] /* Repositories */,
+   listeners : {
+    activate : function() {
+         _this.panel = this;
+         if (_this.grid) {
+             _this.grid.footer.onClick('first');
+         }
+     }
+   },
+   xns : Roo,
+   '|xns' : 'Roo',
+   grid : {
+    xtype : 'Grid',
+    autoExpandColumn : 'shortname',
+    loadMask : true,
+    listeners : {
+     render : function() 
+      {
+          _this.grid = this; 
+          _this.dialog = Pman.Dialog.MTrackRepos;
+          if (_this.panel.active) {
+             this.footer.onClick('first');
+          }
+      },
+     rowdblclick : function (_self, rowIndex, e)
+      {
+          if (!_this.dialog)  { return; }
+          _this.dialog.show( this.getDataSource().getAt(rowIndex), function() {
+              _this.grid.footer.onClick('first');
+          }); 
+      }
+    },
+    xns : Roo.grid,
+    '|xns' : 'Roo.grid',
+    footer : {
+     xtype : 'PagingToolbar',
+     displayInfo : true,
+     displayMsg : _this._strings['6c47888cc8867737f167632508b2f58b'] /* Displaying mtrack_repos{0} - {1} of {2} */,
+     emptyMsg : _this._strings['a4cf31f8bea7da20524198fbe5c0db2a'] /* No mtrack_repos found */,
+     pageSize : 25,
+     xns : Roo,
+     '|xns' : 'Roo'
+    },
+    toolbar : {
+     xtype : 'Toolbar',
+     xns : Roo,
+     '|xns' : 'Roo',
+     items  : [
+      {
+       xtype : 'Button',
+       cls : 'x-btn-text-icon',
+       icon : Roo.rootURL + 'images/default/dd/drop-add.gif',
+       text : _this._strings['ec211f7c20af43e742bf2570c3cb84f9'] /* Add */,
+       listeners : {
+        click : function()
+         {
+             if (!_this.dialog) { return; }
+             _this.dialog.show( { id : 0 } , function() {
+                 _this.grid.footer.onClick('first');
+            }); 
+         }
+       },
+       xns : Roo.Toolbar,
+       '|xns' : 'Roo.Toolbar'
+      },
+      {
+       xtype : 'Button',
+       cls : 'x-btn-text-icon',
+       icon : Roo.rootURL + 'images/default/tree/leaf.gif',
+       text : _this._strings['7dce122004969d56ae2e0245cb754d35'] /* Edit */,
+       listeners : {
+        click : function()
+         {
+             var s = _this.grid.getSelectionModel().getSelections();
+             if (!s.length || (s.length > 1))  {
+                 Roo.MessageBox.alert("Error", s.length ? "Select only one Row" : "Select a Row");
+                 return;
+             }
+             if (!_this.dialog) { return; }
+             _this.dialog.show(s[0].data, function() {
+                 _this.grid.footer.onClick('reload');
+             }); 
+             
+         }
+       },
+       xns : Roo.Toolbar,
+       '|xns' : 'Roo.Toolbar'
+      }
+     ]
+    },
+    dataSource : {
+     xtype : 'Store',
+     remoteSort : true,
+     sortInfo : { field : 'shortname', direction: 'ASC' },
+     xns : Roo.data,
+     '|xns' : 'Roo.data',
+     proxy : {
+      xtype : 'HttpProxy',
+      method : 'GET',
+      url : baseURL + '/Roo/mtrack_repos.php',
+      xns : Roo.data,
+      '|xns' : 'Roo.data'
+     },
+     reader : {
+      xtype : 'JsonReader',
+      fields : [
+          {
+              'name': 'id',
+              'type': 'int'
+          },
+          {
+              'name': 'shortname',
+              'type': 'string'
+          },
+          {
+              'name': 'scmtype',
+              'type': 'string'
+          },
+          {
+              'name': 'repopath',
+              'type': 'string'
+          },
+          {
+              'name': 'browserurl',
+              'type': 'string'
+          },
+          {
+              'name': 'browsertype',
+              'type': 'string'
+          },
+          {
+              'name': 'description',
+              'type': 'string'
+          },
+          {
+              'name': 'serverurl',
+              'type': 'string'
+          },
+          {
+              'name': 'parent',
+              'type': 'string'
+          },
+          {
+              'name': 'clonedfrom',
+              'type': 'int'
+          },
+          {
+              'name': 'project_id',
+              'type': 'int'
+          }
+      ],
+      id : 'id',
+      root : 'data',
+      totalProperty : 'total',
+      xns : Roo.data,
+      '|xns' : 'Roo.data'
+     }
+    },
+    colModel : [
+     {
+      xtype : 'ColumnModel',
+      dataIndex : 'project_id_name',
+      header : _this._strings['9e727fdd3aec8274f46685441900280d'] /* Project */,
+      renderer : function(v) { return String.format('{0}', v); },
+      width : 150,
+      xns : Roo.grid,
+      '|xns' : 'Roo.grid'
+     },
+     {
+      xtype : 'ColumnModel',
+      dataIndex : 'shortname',
+      header : _this._strings['97ec8018c492164da252cbaf95f0fa98'] /* Shortname */,
+      renderer : function(v) { return String.format('{0}', v); },
+      width : 200,
+      xns : Roo.grid,
+      '|xns' : 'Roo.grid'
+     },
+     {
+      xtype : 'ColumnModel',
+      dataIndex : 'scmtype',
+      header : _this._strings['f1c61eb7938469f5aa08964c8b2be862'] /* Scmtype */,
+      renderer : function(v) { return String.format('{0}', v); },
+      width : 70,
+      xns : Roo.grid,
+      '|xns' : 'Roo.grid'
+     },
+     {
+      xtype : 'ColumnModel',
+      dataIndex : 'repopath',
+      header : _this._strings['73cdcee8881d309dd256134f98347769'] /* Repopath */,
+      renderer : function(v) { return String.format('{0}', v); },
+      width : 100,
+      xns : Roo.grid,
+      '|xns' : 'Roo.grid'
+     },
+     {
+      xtype : 'ColumnModel',
+      dataIndex : 'description',
+      header : _this._strings['b5a7adde1af5c87d7fd797b6245c2a39'] /* Description */,
+      renderer : function(v) { return String.format('{0}', v); },
+      width : 200,
+      xns : Roo.grid,
+      '|xns' : 'Roo.grid'
+     },
+     {
+      xtype : 'ColumnModel',
+      dataIndex : 'parent',
+      header : _this._strings['30269022e9d8f51beaabb52e5d0de2b7'] /* Parent */,
+      renderer : function(v) { return String.format('{0}', v); },
+      width : 100,
+      xns : Roo.grid,
+      '|xns' : 'Roo.grid'
+     }
+    ]
+   }
+  };  }
+});