1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

B #5107: Fix boolean user inputs (#274)

(cherry picked from commit 53300a13f509b21333e622a8a1d1e99bbbc5cfd6)
This commit is contained in:
Sergio Betanzos 2020-10-01 12:09:29 +02:00 committed by Tino Vazquez
parent ae5bcd1e02
commit e7f4d4da87
No known key found for this signature in database
GPG Key ID: 2FE9C32E94AEABBE

View File

@ -855,7 +855,7 @@ define(function(require) {
var id = UniqueId.id();
if(value == "YES"){
input = "<br>" + Locale.tr("YES ") + "<input style='margin-right: 20px' checked type='radio' name='bool_" +id + "' value='YES'" + wizard_field + " " + required + "/>";
input += Locale.tr("NO ") + "<input type='radio' name='bool_" + id + "\" value='NO'" + wizard_field + " " + required + "/>";
input += Locale.tr("NO ") + "<input type='radio' name='bool_" + id + "' value='NO'" + wizard_field + " " + required + "/>";
} else if(value == "NO"){
input = "<br>" + Locale.tr("YES ") + "<input style='margin-right: 20px' type='radio' name='bool_" + id + "' value='YES'" + wizard_field + " " + required + "/>";
input += Locale.tr("NO ") + "<input checked type='radio' name='bool_" + id + "' value='NO'" + wizard_field + " " + required + "/>"