mirror of
https://github.com/OpenNebula/one.git
synced 2026-12-03 21:52:31 +09:00
(cherry picked from commit 5b98877648)
This commit is contained in:
1 parent
5bcfcf2501
commit
720ded5717
2 files changed
+18
-1
No files matched your search
+16
@@ -110,6 +110,10 @@ define(function(require) {
|
||||
attr.min = 0.01;
|
||||
}
|
||||
|
||||
if (['range', 'range-float'].includes(attr.type)) {
|
||||
attr.readonly = true
|
||||
}
|
||||
|
||||
input = UserInputs.attributeInput(attr);
|
||||
|
||||
if (attr.type != "range-float"){
|
||||
@@ -132,6 +136,10 @@ define(function(require) {
|
||||
attr.min = 1;
|
||||
}
|
||||
|
||||
if (['range', 'range-float'].includes(attr.type)) {
|
||||
attr.readonly = true
|
||||
}
|
||||
|
||||
input = UserInputs.attributeInput(attr);
|
||||
|
||||
if (attr.type != "range"){
|
||||
@@ -238,6 +246,14 @@ define(function(require) {
|
||||
attr.mandatory = true;
|
||||
}
|
||||
|
||||
if (String(element.TEMPLATE.HYPERVISOR).toLowerCase() === "vcenter") {
|
||||
attr.step = 4;
|
||||
}
|
||||
|
||||
if (['range', 'range-float'].includes(attr.type)) {
|
||||
attr.readonly = true
|
||||
}
|
||||
|
||||
if(attr.min == undefined){
|
||||
attr.min = 1;
|
||||
}
|
||||
|
||||
@@ -41,6 +41,7 @@
|
||||
{{#if disabled}}disabled="true"{{/if}}/>
|
||||
<input type="number" class="visor"
|
||||
data-min="{{min}}" data-max="{{max_value}}"
|
||||
value="{{initial}}" required/>
|
||||
value="{{initial}}" required
|
||||
{{#if readonly}} readonly {{/if}} />
|
||||
</div>
|
||||
</div>
|
||||
Reference in new issue
Block a user