Bug #4315: Template wizard should allow to remove GRAPHICS section

This commit is contained in:
Daniel Molina committed 2016-02-15 13:31:55 +01:00
1 parent ee0c3ce351
commit b01ad72ad6
2 files changed
+8 -2

No files matched your search

@@ -73,8 +73,12 @@ define(function(require) {
function _setup(context) {
$("input[name='graphics_type']", context).change(function() {
$("#TYPE", context).val($(this).attr("value"))
$("#LISTEN", context).val("0.0.0.0")
$("#TYPE", context).val($(this).attr("value"));
if ($(this).attr("value") !== '') {
$("#LISTEN", context).val("0.0.0.0");
} else {
$("#LISTEN", context).val('');
}
});
context.off("click", '#add_input');
@@ -20,6 +20,8 @@
<legend>{{tr "Graphics"}}</legend>
<div class="row">
<div class="large-12 columns text-center">
<input type="radio" name="graphics_type" ID="radioNoneType" value="">
<label for="radioNoneType">{{tr "None"}}</label>
<input type="radio" name="graphics_type" ID="radioVncType" value="VNC">
<label for="radioVncType">VNC</label>
<input type="radio" name="graphics_type" ID="radioSdlType" value="SDL" class="hypervisor only_kvm only_vmware only_xen" >