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:
parent
ad2e40c0bd
commit
7cdbdc5c5d
@ -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));
|
||||
}
|
||||
|
||||
|
@ -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.")}}}
|
||||
|
Loading…
x
Reference in New Issue
Block a user