[pbs-devel] [PATCH proxmox-backup 2/4] ui: remote edit: Add asterisks

Dominic Jäger d.jaeger at proxmox.com
Tue Jan 19 12:09:13 CET 2021


Mark fields that are required with an asterisk.

Signed-off-by: Dominic Jäger <d.jaeger at proxmox.com>
---
 www/window/RemoteEdit.js | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/www/window/RemoteEdit.js b/www/window/RemoteEdit.js
index 74a9412b..391b10bc 100644
--- a/www/window/RemoteEdit.js
+++ b/www/window/RemoteEdit.js
@@ -35,6 +35,7 @@ Ext.define('PBS.window.RemoteEdit', {
 		fieldLabel: gettext('Remote'),
 		renderer: Ext.htmlEncode,
 		allowBlank: false,
+		afterLabelTextTpl: " *",
 		minLength: 4,
 		cbind: {
 		    editable: '{isCreate}',
@@ -47,6 +48,7 @@ Ext.define('PBS.window.RemoteEdit', {
 	    {
 		xtype: 'proxmoxtextfield',
 		allowBlank: false,
+		afterLabelTextTpl: " *",
 		name: 'hostport',
 		submitValue: false,
 		vtype: 'HostPort',
@@ -99,6 +101,7 @@ Ext.define('PBS.window.RemoteEdit', {
 	    {
 		xtype: 'proxmoxtextfield',
 		allowBlank: false,
+		afterLabelTextTpl: " *",
 		name: 'auth-id',
 		fieldLabel: gettext('Auth ID'),
 		autoEl: {
-- 
2.20.1





More information about the pbs-devel mailing list