1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-26 06:50:09 +03:00

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

This commit is contained in:
Daniel Molina 2016-02-15 13:31:39 +01:00
parent ee0c3ce351
commit b01ad72ad6
2 changed files with 8 additions and 2 deletions

View File

@ -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');

View File

@ -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" >