[pve-devel] [PATCH manager 1/4] Move out custom css style for hints in css class and use it

Emmanuel Kasper e.kasper at proxmox.com
Wed Oct 19 14:17:42 CEST 2016


---
 www/css/ext6-pve.css              | 4 ++++
 www/manager6/qemu/QemuBiosEdit.js | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/www/css/ext6-pve.css b/www/css/ext6-pve.css
index e72355b..c050aca 100644
--- a/www/css/ext6-pve.css
+++ b/www/css/ext6-pve.css
@@ -376,6 +376,10 @@
     color: black;
 }
 
+.pve-hint {
+    background-color: LightYellow;
+}
+
 /* for info widget */
 div.left-aligned {
     float: left;
diff --git a/www/manager6/qemu/QemuBiosEdit.js b/www/manager6/qemu/QemuBiosEdit.js
index 55dee11..2212652 100644
--- a/www/manager6/qemu/QemuBiosEdit.js
+++ b/www/manager6/qemu/QemuBiosEdit.js
@@ -7,7 +7,7 @@ Ext.define('PVE.qemu.BiosEdit', {
 
 	var EFIHint = Ext.createWidget({
 	    xtype: 'displayfield', //submitValue is false, so we don't get submitted
-	    fieldStyle: 'background-color: LightYellow;',
+	    userCls: 'pve-hint',
 	    value: gettext('You need to add an EFI disk for storing the ' +
 	    'EFI settings. See the online help for details.'),
 	    hidden: true
-- 
2.1.4





More information about the pve-devel mailing list