Fixed required fields for checkbox

This commit is contained in:
Adolfo Gómez García 2020-02-26 12:57:52 +01:00
parent a8e58db3bd
commit e84965bb84
2 changed files with 1 additions and 2 deletions

View File

@ -126,7 +126,6 @@ class Provider(services.ServiceProvider):
order=4,
label=_('Is Methuselah still alive?'),
tooltip=_('If you fail, this will not get saved :-)'),
required=True, # : Also means nothing. Check boxes has always a value
defvalue=gui.TRUE # : By default, at new item, check this
)

View File

@ -101,7 +101,7 @@ class XenProvider(ServiceProvider): # pylint: disable=too-many-public-methods
macsRange = gui.TextField(length=36, label=_('Macs range'), defvalue='02:46:00:00:00:00-02:46:00:FF:FF:FF', order=90, rdonly=True,
tooltip=_('Range of valid macs for created machines'), required=True, tab=gui.ADVANCED_TAB)
verifySSL = gui.CheckBoxField(label=_('Verify Certificate'), order=91,
tooltip=_('If selected, certificate will be checked against system valid certificate providers'), required=True,
tooltip=_('If selected, certificate will be checked against system valid certificate providers'),
tab=gui.ADVANCED_TAB, defvalue=gui.FALSE)
_api: typing.Optional[XenServer]