[pve-devel] [PATCH manager 2/3] add comment to network edit and view

Dominik Csapak d.csapak at proxmox.com
Wed Jun 29 14:28:38 CEST 2016


this adds a new textinput field for the comment to the
network edit window and a new column for it in the
network view

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 www/manager6/node/NetworkEdit.js | 8 ++++++++
 www/manager6/node/NetworkView.js | 5 +++++
 2 files changed, 13 insertions(+)

diff --git a/www/manager6/node/NetworkEdit.js b/www/manager6/node/NetworkEdit.js
index ddd41da..7268dc6 100644
--- a/www/manager6/node/NetworkEdit.js
+++ b/www/manager6/node/NetworkEdit.js
@@ -153,6 +153,14 @@ Ext.define('PVE.node.NetworkEdit', {
 		name: 'ovs_options'
 	    });
 	}
+	
+	column2.push({
+	    xtype: 'textfield',
+	    fieldLabel: gettext('Comment'),
+	    allowBlank: true,
+	    nodename: nodename,
+	    name: 'comments'
+	});
 
 	var url;
 	var method;
diff --git a/www/manager6/node/NetworkView.js b/www/manager6/node/NetworkView.js
index f8a3807..5fbc947 100644
--- a/www/manager6/node/NetworkView.js
+++ b/www/manager6/node/NetworkView.js
@@ -296,6 +296,11 @@ Ext.define('PVE.node.NetworkView', {
 				    return rec.data.gateway;
 				}
 			    }
+			},
+			{
+			    header: gettext('Comment'),
+			    dataIndex: 'comments',
+			    renderer: Ext.String.htmlEncode
 			}
 		    ],
 		    listeners: {
-- 
2.1.4




More information about the pve-devel mailing list