bug 9534: CloudStack UI - Add Service Offering Dialog - add "CPU cap: (yes/no)"

This commit is contained in:
Jessica Wang 2011-05-04 14:57:01 -07:00
parent 4ab68bd44a
commit 2b4a463faf
3 changed files with 15 additions and 2 deletions

View File

@ -9,6 +9,7 @@ label.PING.dir=PING Directory
label.TFTP.dir=TFTP Directory
label.PING.CIFS.username=PING CIFS username
label.PING.CIFS.password=PING CIFS password
label.CPU.cap=CPU Cap
#Labels
label.PreSetup=PreSetup

View File

@ -242,8 +242,16 @@ dictionary = {
<input class="text" type="text" id="add_service_tags" />
<div id="add_service_tags_errormsg" class="dialog_formcontent_errormsg" style="display: none;">
</div>
</li>
<li>
</li>
<li>
<label>
<fmt:message key="label.CPU.cap"/>?:</label>
<select class="select" id="cpu_cap_dropdown">
<option value="false"><fmt:message key="label.no"/></option>
<option value="true"><fmt:message key="label.yes"/></option>
</select>
</li>
<li>
<label>
<fmt:message key="label.public"/>?:</label>
<select class="select" id="public_dropdown">

View File

@ -150,6 +150,10 @@ function initAddServiceOfferingDialog() {
if(tags != null && tags.length > 0)
array1.push("&tags="+todb(tags));
if($thisDialog.find("#cpu_cap_dropdown_container").css("display") != "none") {
array1.push("&limitcpuuse="+$thisDialog.find("#cpu_cap_dropdown").val());
}
if($thisDialog.find("#domain_container").css("display") != "none") {
array1.push("&domainid="+domainId);
}