Move out custom css style for hints in css class and use it

This commit is contained in:
Emmanuel Kasper 2016-10-19 14:17:42 +02:00 committed by Dietmar Maurer
parent bab64974a5
commit aeae272a86
2 changed files with 5 additions and 1 deletions

View File

@ -376,6 +376,10 @@
color: black; color: black;
} }
.pve-hint {
background-color: LightYellow;
}
/* for info widget */ /* for info widget */
div.left-aligned { div.left-aligned {
float: left; float: left;

View File

@ -7,7 +7,7 @@ Ext.define('PVE.qemu.BiosEdit', {
var EFIHint = Ext.createWidget({ var EFIHint = Ext.createWidget({
xtype: 'displayfield', //submitValue is false, so we don't get submitted 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 ' + value: gettext('You need to add an EFI disk for storing the ' +
'EFI settings. See the online help for details.'), 'EFI settings. See the online help for details.'),
hidden: true hidden: true