mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
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:
parent
08d16cf4d1
commit
83229aa460
11
ui/index.jsp
11
ui/index.jsp
@ -498,22 +498,13 @@ under the License.
|
||||
<div class="title">
|
||||
<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>
|
||||
|
||||
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user