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

Signed-off-by: Fabian Ebner <[email protected]>
---

New in v2.

 www/manager6/dc/Backup.js | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/www/manager6/dc/Backup.js b/www/manager6/dc/Backup.js
index 2b892c6f..02a2bf4c 100644
--- a/www/manager6/dc/Backup.js
+++ b/www/manager6/dc/Backup.js
@@ -231,6 +231,23 @@ 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,
+                   autoEl: {
+                       tag: 'div',
+                       'data-qtip': Ext.String.format(
+                           gettext('Notes added to the backups. Possible 
variables: {0}'),
+                           '$CLUSTER, $GUESTNAME, $NODE, $VMID',
+                       ),
+                   },
                },
            ],
            onGetValues: function(values) {
-- 
2.30.2



_______________________________________________
pve-devel mailing list
[email protected]
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to