Zone wizard UI: Change isolation mode selection

-Remove VLAN + SG radio buttons; replace with 'Security groups'
checkbox

-Pass boolean 'zone.sgEnabled' to zoneWizard action handler, instead of
'zone.isolationMode' from before.
This commit is contained in:
Brian Federle 2012-11-15 11:26:59 -08:00
parent 08d16cf4d1
commit 83229aa460
2 changed files with 3 additions and 11 deletions

View File

@ -499,21 +499,12 @@ under the License.
<fmt:message key="label.isolation.mode"/>
</div>
<!-- VLAN -->
<div class="select-area">
<div class="desc">
<fmt:message key="message.advanced.virtual"/>
</div>
<input type="radio" name="zone-isolation-mode" value="VLAN" disabled="disabled" checked="checked" />
<label>VLAN</label>
</div>
<!-- Security groups -->
<div class="select-area">
<div class="desc">
<fmt:message key="message.advanced.security.group"/>
</div>
<input type="radio" name="zone-isolation-mode" value="SG" disabled="disabled" />
<input type="checkbox" name="zone-advanced-sg-enabled" disabled="disabled" />
<label><fmt:message key="label.menu.security.groups"/></label>
</div>
</div>

View File

@ -156,7 +156,8 @@
// Include zone isolation mode, supported for Advanced zones only
if (groupedForms.zone.networkType == 'Advanced') {
groupedForms.zone.isolationMode = $forms.find('input[name=zone-isolation-mode]:checked').val();
groupedForms.zone.sgEnabled = $forms.find('input[name=zone-advanced-sg-enabled]')
.is(':checked') ? true : false;
}
}