[pve-devel] [PATCH v2 manager 7/8] close #438: ui: backup job: allow setting a notes-template for a job
Fabian Ebner
f.ebner at proxmox.com
Tue Mar 29 14:53:23 CEST 2022
Add a tooltip to the comment field, to better distinguish it from the
notes-template.
Signed-off-by: Fabian Ebner <f.ebner at proxmox.com>
---
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
More information about the pve-devel
mailing list