[pve-devel] [PATCH] Add empty field text.
Wolfgang Link
w.link at proxmox.com
Fri Apr 15 11:28:35 CEST 2016
This is useful if user not really know what is the scheme or which value comes in.
---
www/manager6/storage/DirEdit.js | 1 +
www/manager6/storage/GlusterFsEdit.js | 1 +
www/manager6/storage/IScsiEdit.js | 1 +
www/manager6/storage/NFSEdit.js | 1 +
www/manager6/storage/RBDEdit.js | 1 +
www/manager6/storage/ZFSEdit.js | 3 +++
www/manager6/storage/ZFSPoolEdit.js | 1 +
7 files changed, 9 insertions(+)
diff --git a/www/manager6/storage/DirEdit.js b/www/manager6/storage/DirEdit.js
index e38c231..70daf05 100644
--- a/www/manager6/storage/DirEdit.js
+++ b/www/manager6/storage/DirEdit.js
@@ -33,6 +33,7 @@ Ext.define('PVE.storage.DirInputPanel', {
xtype: me.create ? 'textfield' : 'displayfield',
name: 'path',
value: '',
+ emptyText: '/path/..',
fieldLabel: gettext('Directory'),
allowBlank: false
},
diff --git a/www/manager6/storage/GlusterFsEdit.js b/www/manager6/storage/GlusterFsEdit.js
index 44aa982..de6924c 100644
--- a/www/manager6/storage/GlusterFsEdit.js
+++ b/www/manager6/storage/GlusterFsEdit.js
@@ -92,6 +92,7 @@ Ext.define('PVE.storage.GlusterFsInputPanel', {
value: '',
fieldLabel: gettext('Server'),
allowBlank: false,
+ emptyText: '192.168.1.10',
listeners: {
change: function(f, value) {
if (me.create) {
diff --git a/www/manager6/storage/IScsiEdit.js b/www/manager6/storage/IScsiEdit.js
index 8bfb58f..8379414 100644
--- a/www/manager6/storage/IScsiEdit.js
+++ b/www/manager6/storage/IScsiEdit.js
@@ -94,6 +94,7 @@ Ext.define('PVE.storage.IScsiInputPanel', {
value: '',
fieldLabel: 'Portal',
allowBlank: false,
+ emptyText: '192.168.1.10',
listeners: {
change: function(f, value) {
if (me.create) {
diff --git a/www/manager6/storage/NFSEdit.js b/www/manager6/storage/NFSEdit.js
index e9f398f..aa2cb2e 100644
--- a/www/manager6/storage/NFSEdit.js
+++ b/www/manager6/storage/NFSEdit.js
@@ -95,6 +95,7 @@ Ext.define('PVE.storage.NFSInputPanel', {
value: '',
fieldLabel: gettext('Server'),
allowBlank: false,
+ emptyText: '192.168.1.10',
listeners: {
change: function(f, value) {
if (me.create) {
diff --git a/www/manager6/storage/RBDEdit.js b/www/manager6/storage/RBDEdit.js
index c98a4c5..2cc09a2 100644
--- a/www/manager6/storage/RBDEdit.js
+++ b/www/manager6/storage/RBDEdit.js
@@ -40,6 +40,7 @@ Ext.define('PVE.storage.RBDInputPanel', {
xtype: me.create ? 'textfield' : 'displayfield',
name: 'monhost',
value: '',
+ emptyText: '192.168.1.10;192.168.1.11',
fieldLabel: gettext('Monitor Host'),
allowBlank: false
},
diff --git a/www/manager6/storage/ZFSEdit.js b/www/manager6/storage/ZFSEdit.js
index 12d6af1..d556e62 100644
--- a/www/manager6/storage/ZFSEdit.js
+++ b/www/manager6/storage/ZFSEdit.js
@@ -32,6 +32,7 @@ Ext.define('PVE.storage.ZFSInputPanel', {
{
xtype: me.create ? 'textfield' : 'displayfield',
name: 'portal',
+ emptyText: '192.168.1.10',
value: '',
fieldLabel: gettext('Portal'),
allowBlank: false
@@ -39,6 +40,7 @@ Ext.define('PVE.storage.ZFSInputPanel', {
{
xtype: me.create ? 'textfield' : 'displayfield',
name: 'pool',
+ emptyText: 'tank',
value: '',
fieldLabel: gettext('Pool'),
allowBlank: false
@@ -53,6 +55,7 @@ Ext.define('PVE.storage.ZFSInputPanel', {
{
xtype: me.create ? 'textfield' : 'displayfield',
name: 'target',
+ emptyText: 'iqn.2010-08.org.illumos:***',
value: '',
fieldLabel: gettext('Target'),
allowBlank: false
diff --git a/www/manager6/storage/ZFSPoolEdit.js b/www/manager6/storage/ZFSPoolEdit.js
index e227b2e..e88f267 100644
--- a/www/manager6/storage/ZFSPoolEdit.js
+++ b/www/manager6/storage/ZFSPoolEdit.js
@@ -74,6 +74,7 @@ Ext.define('PVE.storage.ZFSPoolInputPanel', {
me.column1.push(Ext.createWidget('displayfield', {
name: 'pool',
value: '',
+ emptyText: 'tank',
fieldLabel: gettext('ZFS Pool'),
allowBlank: false
}));
--
2.1.4
More information about the pve-devel
mailing list