mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
CloudStack UI - router page - add "redundant router" field (yes/no) which is editable.
This commit is contained in:
parent
d98f7ebfbd
commit
1ce37a4712
@ -2,7 +2,9 @@
|
||||
|
||||
|
||||
|
||||
|
||||
#Labels
|
||||
label.redundant.router=Redundant Router
|
||||
label.is.redundant.router=Redundant
|
||||
|
||||
force.delete=Force Delete
|
||||
|
||||
@ -1,9 +1,12 @@
|
||||
#New - Add all new parameters here.
|
||||
label.is.redundant.router=redundante
|
||||
label.redundant.state=Redundant State
|
||||
|
||||
|
||||
|
||||
|
||||
#Labels
|
||||
label.redundant.router=enrutador redundante
|
||||
label.is.redundant.router=redundante
|
||||
|
||||
force.delete=Fuerza Borrar
|
||||
force.delete.domain.warning=Advertencia: Si elige esta opción, la supresión de todos los dominios secundarios y todas las cuentas asociadas y sus recursos.
|
||||
|
||||
|
||||
@ -2,7 +2,9 @@
|
||||
|
||||
|
||||
|
||||
|
||||
#Labels
|
||||
label.redundant.router=冗長ルータ
|
||||
label.is.redundant.router=冗長
|
||||
|
||||
force.delete=強制削除
|
||||
|
||||
@ -2,7 +2,9 @@
|
||||
|
||||
|
||||
|
||||
|
||||
#Labels
|
||||
label.redundant.router=冗余路由器
|
||||
label.is.redundant.router=冗余
|
||||
|
||||
force.delete=力删除
|
||||
|
||||
@ -108,6 +108,21 @@ dictionary = {
|
||||
</div>
|
||||
|
||||
<div class="grid_rows odd">
|
||||
<div class="grid_row_cell" style="width: 20%;">
|
||||
<div class="row_celltitles">
|
||||
<fmt:message key="label.redundant.router"/>:</div>
|
||||
</div>
|
||||
<div class="grid_row_cell" style="width: 79%;">
|
||||
<div class="row_celltitles" id="redundantrouter">
|
||||
</div>
|
||||
<select class="select" id="redundantrouter_edit" style="width: 202px; display: none;">
|
||||
<option value="false"><fmt:message key="label.no"/></option>
|
||||
<option value="true"><fmt:message key="label.yes"/></option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="grid_rows even">
|
||||
<div class="grid_row_cell" style="width: 20%;">
|
||||
<div class="row_celltitles">
|
||||
<fmt:message key="label.is.default"/>:</div>
|
||||
@ -118,7 +133,7 @@ dictionary = {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="grid_rows even">
|
||||
<div class="grid_rows odd">
|
||||
<div class="grid_row_cell" style="width: 20%;">
|
||||
<div class="row_celltitles">
|
||||
<fmt:message key="label.specify.vlan"/>:</div>
|
||||
@ -129,7 +144,7 @@ dictionary = {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="grid_rows odd">
|
||||
<div class="grid_rows even">
|
||||
<div class="grid_row_cell" style="width: 20%;">
|
||||
<div class="row_celltitles">
|
||||
<fmt:message key="label.network.rate"/>:</div>
|
||||
@ -140,7 +155,7 @@ dictionary = {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="grid_rows even">
|
||||
<div class="grid_rows odd">
|
||||
<div class="grid_row_cell" style="width: 20%;">
|
||||
<div class="row_celltitles">
|
||||
<fmt:message key="label.traffic.type"/>:</div>
|
||||
|
||||
@ -40,8 +40,8 @@ function networkOfferingGetSearchParams() {
|
||||
}
|
||||
|
||||
function afterLoadNetworkOfferingJSP() {
|
||||
$readonlyFields = $("#tab_content_details").find("#displaytext, #availability");
|
||||
$editFields = $("#tab_content_details").find("#displaytext_edit, #availability_edit");
|
||||
$readonlyFields = $("#tab_content_details").find("#displaytext, #availability, #redundantrouter");
|
||||
$editFields = $("#tab_content_details").find("#displaytext_edit, #availability_edit, #redundantrouter_edit");
|
||||
}
|
||||
|
||||
function doEditNetworkOffering($actionLink, $detailsTab, $midmenuItem1) {
|
||||
@ -77,6 +77,9 @@ function doEditNetworkOffering2($actionLink, $detailsTab, $midmenuItem1, $readon
|
||||
var availability = $detailsTab.find("#availability_edit").val();
|
||||
array1.push("&availability="+todb(availability));
|
||||
|
||||
var redundantrouter = $detailsTab.find("#redundantrouter_edit").val();
|
||||
array1.push("&redundantrouter="+redundantrouter);
|
||||
|
||||
$.ajax({
|
||||
data: createURL("command=updateNetworkOffering&id="+id+array1.join("")),
|
||||
dataType: "json",
|
||||
@ -159,7 +162,10 @@ function networkOfferingJsonToDetailsTab() {
|
||||
|
||||
$thisTab.find("#availability").text(fromdb(jsonObj.availability));
|
||||
$thisTab.find("#availability_edit").val(fromdb(jsonObj.availability));
|
||||
|
||||
|
||||
setBooleanReadField(jsonObj.redundantrouter, $thisTab.find("#redundantrouter"));
|
||||
setBooleanEditField(jsonObj.redundantrouter, $thisTab.find("#redundantrouter_edit"));
|
||||
|
||||
setBooleanReadField(jsonObj.isdefault, $thisTab.find("#isdefault"));
|
||||
setBooleanReadField(jsonObj.specifyvlan, $thisTab.find("#specifyvlan"));
|
||||
|
||||
@ -190,7 +196,8 @@ function networkOfferingClearDetailsTab() {
|
||||
$thisTab.find("#grid_header_title").text("");
|
||||
$thisTab.find("#name").text("");
|
||||
$thisTab.find("#displaytext").text("");
|
||||
$thisTab.find("#displaytext_edit").val("");
|
||||
$thisTab.find("#displaytext_edit").val("");
|
||||
$thisTab.find("#redundantrouter").text("");
|
||||
$thisTab.find("#disksize").text("");
|
||||
$thisTab.find("#tags").text("");
|
||||
$thisTab.find("#domain").text("");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user