mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 11:52:28 +01:00
Bug 10418: service offering page, system service offering page - Add Service Offering dialog - add "Host tags" field.
This commit is contained in:
parent
cd531d7562
commit
b6cf19e23d
@ -254,7 +254,14 @@ dictionary = {
|
|||||||
<input class="text" type="text" id="add_service_tags" />
|
<input class="text" type="text" id="add_service_tags" />
|
||||||
<div id="add_service_tags_errormsg" class="dialog_formcontent_errormsg" style="display: none;">
|
<div id="add_service_tags_errormsg" class="dialog_formcontent_errormsg" style="display: none;">
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
|
<li id="add_service_hosttags_container">
|
||||||
|
<label>
|
||||||
|
<fmt:message key="label.host.tags"/>:</label>
|
||||||
|
<input class="text" type="text" id="add_service_hosttags" />
|
||||||
|
<div id="add_service_hosttags_errormsg" class="dialog_formcontent_errormsg" style="display: none;">
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<label>
|
<label>
|
||||||
<fmt:message key="label.CPU.cap"/>:</label>
|
<fmt:message key="label.CPU.cap"/>:</label>
|
||||||
|
|||||||
@ -265,7 +265,14 @@ dictionary = {
|
|||||||
<input class="text" type="text" id="add_service_tags" />
|
<input class="text" type="text" id="add_service_tags" />
|
||||||
<div id="add_service_tags_errormsg" class="dialog_formcontent_errormsg" style="display: none;">
|
<div id="add_service_tags_errormsg" class="dialog_formcontent_errormsg" style="display: none;">
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
|
<li id="add_service_hosttags_container">
|
||||||
|
<label>
|
||||||
|
<fmt:message key="label.host.tags"/>:</label>
|
||||||
|
<input class="text" type="text" id="add_service_hosttags" />
|
||||||
|
<div id="add_service_hosttags_errormsg" class="dialog_formcontent_errormsg" style="display: none;">
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<label>
|
<label>
|
||||||
<fmt:message key="label.CPU.cap"/>:</label>
|
<fmt:message key="label.CPU.cap"/>:</label>
|
||||||
|
|||||||
@ -149,7 +149,11 @@ function initAddServiceOfferingDialog() {
|
|||||||
var tags = $thisDialog.find("#add_service_tags").val();
|
var tags = $thisDialog.find("#add_service_tags").val();
|
||||||
if(tags != null && tags.length > 0)
|
if(tags != null && tags.length > 0)
|
||||||
array1.push("&tags="+todb(tags));
|
array1.push("&tags="+todb(tags));
|
||||||
|
|
||||||
|
var hosttags = $thisDialog.find("#add_service_hosttags").val();
|
||||||
|
if(hosttags != null && hosttags.length > 0)
|
||||||
|
array1.push("&hosttags="+todb(hosttags));
|
||||||
|
|
||||||
if($thisDialog.find("#cpu_cap_dropdown_container").css("display") != "none") {
|
if($thisDialog.find("#cpu_cap_dropdown_container").css("display") != "none") {
|
||||||
array1.push("&limitcpuuse="+$thisDialog.find("#cpu_cap_dropdown").val());
|
array1.push("&limitcpuuse="+$thisDialog.find("#cpu_cap_dropdown").val());
|
||||||
}
|
}
|
||||||
|
|||||||
@ -150,6 +150,10 @@ function initAddSystemServiceOfferingDialog() {
|
|||||||
if(tags != null && tags.length > 0)
|
if(tags != null && tags.length > 0)
|
||||||
array1.push("&tags="+todb(tags));
|
array1.push("&tags="+todb(tags));
|
||||||
|
|
||||||
|
var hosttags = $thisDialog.find("#add_service_hosttags").val();
|
||||||
|
if(hosttags != null && hosttags.length > 0)
|
||||||
|
array1.push("&hosttags="+todb(hosttags));
|
||||||
|
|
||||||
if($thisDialog.find("#cpu_cap_dropdown_container").css("display") != "none") {
|
if($thisDialog.find("#cpu_cap_dropdown_container").css("display") != "none") {
|
||||||
array1.push("&limitcpuuse="+$thisDialog.find("#cpu_cap_dropdown").val());
|
array1.push("&limitcpuuse="+$thisDialog.find("#cpu_cap_dropdown").val());
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user