CLOUDSTACK-537: Fix for instance wizard

When using SG-enabled advanced zone, fix case where 'add guest
network' form shows up in select network step -- adding a guest
network via the wizard is not supported in this type of setup.
This commit is contained in:
Brian Federle 2013-01-21 14:30:56 -08:00
parent 6db719d58b
commit a4c413bc13
2 changed files with 16 additions and 0 deletions

View File

@ -5778,6 +5778,10 @@ label.error {
height: 223px;
}
.multi-wizard.instance-wizard .select-network.no-add-network .select table .select-container {
height: 282px;
}
.multi-wizard.instance-wizard .select-network .select.new-network table .select-container {
height: 29px;
overflow: visible;
@ -5802,6 +5806,10 @@ label.error {
margin: -17px 0 0;
}
.multi-wizard.instance-wizard .select-network.no-add-network .select.new-network {
display: none !important;
}
.multi-wizard.instance-wizard .select-network .main-desc {
width: 252px;
top: 12px;

View File

@ -284,6 +284,7 @@
$networkStep.find("#from_instance_page_2").show();
$networkStep.find("#from_vpc_tier").text("");
$networkStep.find("#from_vpc_tier").hide();
$networkStepContainer.removeClass('next-use-security-groups');
} else { // Advanced SG-enabled zone
step5ContainerType = 'select-advanced-sg';
}
@ -384,8 +385,15 @@
});
//get network offerings (end) ***
$networkStepContainer.removeClass('repeat next-use-security-groups');
if (step5ContainerType == 'select-advanced-sg') {
$networkStepContainer.addClass('repeat next-use-security-groups');
// Add guest network is disabled
$networkStepContainer.find('.select-network').addClass('no-add-network');
} else {
$networkStepContainer.find('.select-network').removeClass('no-add-network');
}
args.response.success({