[pve-devel] [PATCH manager] ui: lxc/net: s/i.e./e.g./ and transform to emptyText

Thomas Lamprecht t.lamprecht at proxmox.com
Mon Nov 19 12:56:04 CET 2018


We want to name an example here, so `e.g.` would be better.

Also show that in the field if empty. No changes to gettext stuff.

Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
---
 www/manager6/lxc/Network.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/www/manager6/lxc/Network.js b/www/manager6/lxc/Network.js
index 22d30055..88c6e561 100644
--- a/www/manager6/lxc/Network.js
+++ b/www/manager6/lxc/Network.js
@@ -91,7 +91,8 @@ Ext.define('PVE.lxc.NetworkInputPanel', {
 	    {
 		xtype: 'textfield',
 		name: 'name',
-		fieldLabel: gettext('Name') + ' (i.e. eth0)',
+		fieldLabel: gettext('Name'),
+		emptyText: '(e.g., eth0)',
 		allowBlank: false,
 		value: cdata.name,
 		validator: function(value) {
-- 
2.19.1





More information about the pve-devel mailing list