[pve-devel] [PATCH manager 2/3] CreateWizard: allow adding notes during guest creation
Thomas Lamprecht
t.lamprecht at proxmox.com
Wed Jul 26 15:49:12 CEST 2017
Add a text area to the end of the creation wizard, to allow
adding some notes to this guest.
We can set this through the API already on creation so no big changes
needed.
Add the text area in the confirmation panel, as there is the point
where it's "sure" which task the VM will do, if there's any.
Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
---
www/manager6/lxc/CreateWizard.js | 11 +++++++++++
www/manager6/qemu/CreateWizard.js | 11 +++++++++++
2 files changed, 22 insertions(+)
diff --git a/www/manager6/lxc/CreateWizard.js b/www/manager6/lxc/CreateWizard.js
index 8515877a..01ec09d9 100644
--- a/www/manager6/lxc/CreateWizard.js
+++ b/www/manager6/lxc/CreateWizard.js
@@ -266,6 +266,17 @@ Ext.define('PVE.lxc.CreateWizard', {
]
}
],
+ dockedItems: [
+ {
+ xtype: 'textarea',
+ name: 'description',
+ emptyText: gettext('Notes'),
+ margin: '5 0 0 0',
+ value: '',
+ dock: 'bottom',
+ allowBlank: true
+ }
+ ],
listeners: {
show: function(panel) {
var form = me.down('form').getForm();
diff --git a/www/manager6/qemu/CreateWizard.js b/www/manager6/qemu/CreateWizard.js
index 29374b3a..2184ccfd 100644
--- a/www/manager6/qemu/CreateWizard.js
+++ b/www/manager6/qemu/CreateWizard.js
@@ -135,6 +135,17 @@ Ext.define('PVE.qemu.CreateWizard', {
]
}
],
+ dockedItems: [
+ {
+ xtype: 'textarea',
+ name: 'description',
+ emptyText: gettext('Notes'),
+ margin: '5 0 0 0',
+ value: '',
+ dock: 'bottom',
+ allowBlank: true
+ }
+ ],
listeners: {
show: function(panel) {
var form = me.down('form').getForm();
--
2.11.0
More information about the pve-devel
mailing list