1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-30 22:50:10 +03:00

Fix capacity input width

This commit is contained in:
Carlos Martín 2016-05-12 16:21:32 +02:00
parent ad2e40c0bd
commit 7cdbdc5c5d
2 changed files with 15 additions and 3 deletions

View File

@ -93,6 +93,10 @@ define(function(require) {
input = UserInputs.attributeInput(attr);
if (attr.type != "range-float"){
$("div.cpu_input_wrapper", context).addClass("medium-6");
}
$("div.cpu_input", context).html(input);
if (userInputs != undefined && userInputs.VCPU != undefined){
@ -107,6 +111,10 @@ define(function(require) {
input = UserInputs.attributeInput(attr);
if (attr.type != "range"){
$("div.vcpu_input_wrapper", context).addClass("medium-6");
}
$("div.vcpu_input", context).html(input);
if (userInputs != undefined && userInputs.MEMORY != undefined){
@ -119,6 +127,10 @@ define(function(require) {
attr.initial = element.TEMPLATE.MEMORY;
}
if (attr.type != "range"){
$("div.memory_input_wrapper", context).addClass("large-6").addClass("medium-8");
}
UserInputs.insertAttributeInputMB(attr, $("div.memory_input", context));
}

View File

@ -16,7 +16,7 @@
<div class="row">
<div class="large-6 medium-8 small-12 columns">
<div class="memory_input_wrapper small-12 columns">
<label class="" for="MEMORY">
{{tr "Memory"}}
{{{tip (tr "Amount of RAM required for the VM, in Megabytes.")}}}
@ -26,7 +26,7 @@
</div>
</div>
<div class="row">
<div class="medium-6 small-12 columns">
<div class="cpu_input_wrapper small-12 columns">
<label class="" for="CPU">
{{tr "CPU"}}
{{{tip (tr "Percentage of CPU divided by 100 required for the Virtual Machine. Half a processor is written 0.5.")}}}
@ -34,7 +34,7 @@
<div class="cpu_input">
</div>
</div>
<div class="medium-6 small-12 columns">
<div class="vcpu_input_wrapper small-12 columns end">
<label class="" for="VCPU">
{{tr "VCPU"}}
{{{tip (tr "Number of virtual cpus. This value is optional, the default hypervisor behavior is used, usually one virtual CPU.")}}}