[pve-devel] r6064 - in pve-manager/pve2/www/manager: . storage

svn-commits at proxmox.com svn-commits at proxmox.com
Tue May 31 11:28:39 CEST 2011


Author: dietmar
Date: 2011-05-31 11:28:39 +0200 (Tue, 31 May 2011)
New Revision: 6064

Modified:
   pve-manager/pve2/www/manager/PVEUtils.js
   pve-manager/pve2/www/manager/storage/StatusView.js
Log:
use renderers


Modified: pve-manager/pve2/www/manager/PVEUtils.js
===================================================================
--- pve-manager/pve2/www/manager/PVEUtils.js	2011-05-31 09:19:11 UTC (rev 6063)
+++ pve-manager/pve2/www/manager/PVEUtils.js	2011-05-31 09:28:39 UTC (rev 6064)
@@ -44,8 +44,6 @@
    
 });
 
- 
-
 Ext.define('PVE.Utils', {
     singleton: true,
 

Modified: pve-manager/pve2/www/manager/storage/StatusView.js
===================================================================
--- pve-manager/pve2/www/manager/storage/StatusView.js	2011-05-31 09:19:11 UTC (rev 6063)
+++ pve-manager/pve2/www/manager/storage/StatusView.js	2011-05-31 09:28:39 UTC (rev 6064)
@@ -14,21 +14,31 @@
 	    throw "no storage ID specified";
 
 	var rows = {
+	    disable: {
+		header: 'Enabled', 
+		required: true,
+		renderer: PVE.Utils.format_neg_boolean	
+	    },
 	    active: {
-		header: 'Active', required: true
+		header: 'Active', 
+		required: true,		
+		renderer: PVE.Utils.format_boolean
 	    },
 	    content: {
-		header: 'Content', required: true
+		header: 'Content', 
+		required: true,
+		renderer: PVE.Utils.format_content_types
 	    },
 	    type: {
-		header: 'Type', required: true
+		header: 'Type', 
+		required: true,
+		renderer: PVE.Utils.format_storage_type
 	    },
 	    shared: {
-		header: 'Shared', required: true
+		header: 'Shared', 
+		required: true,
+		renderer: PVE.Utils.format_boolean
 	    },
-	    disable: {
-		header: 'Disable', required: true
-	    },
 	    total: {
 		header: 'Size', 
 		required: true, 




More information about the pve-devel mailing list