Add a tooltip to the comment field, to better distinguish it from the
notes-template.

Signed-off-by: Fabian Ebner <f.eb...@proxmox.com>
---
 www/manager6/dc/Backup.js | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/www/manager6/dc/Backup.js b/www/manager6/dc/Backup.js
index 2b892c6f..9b129266 100644
--- a/www/manager6/dc/Backup.js
+++ b/www/manager6/dc/Backup.js
@@ -231,6 +231,24 @@ Ext.define('PVE.dc.BackupEdit', {
                    name: 'comment',
                    fieldLabel: gettext('Comment'),
                    deleteEmpty: !me.isCreate,
+                   autoEl: {
+                       tag: 'div',
+                       'data-qtip': gettext('Description of the job'),
+                   },
+               },
+               {
+                   xtype: 'proxmoxtextfield',
+                   name: 'notes-template',
+                   fieldLabel: gettext('Notes'),
+                   deleteEmpty: !me.isCreate,
+                   value: me.isCreate ? '{{guestname}}' : undefined,
+                   autoEl: {
+                       tag: 'div',
+                       'data-qtip': Ext.String.format(
+                           gettext('Notes added to the backup. Possible 
variables are {0}'),
+                           '{{cluster}}, {{guestname}}, {{node}}, {{vmid}}',
+                       ),
+                   },
                },
            ],
            onGetValues: function(values) {
-- 
2.30.2



_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to