diff --git a/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/general/capacity-inputs.js b/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/general/capacity-inputs.js index 5aa136bb17..958e8b45f9 100644 --- a/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/general/capacity-inputs.js +++ b/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/general/capacity-inputs.js @@ -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; } diff --git a/src/sunstone/public/app/utils/range-slider/html.hbs b/src/sunstone/public/app/utils/range-slider/html.hbs index 450ed6225e..261af045d3 100644 --- a/src/sunstone/public/app/utils/range-slider/html.hbs +++ b/src/sunstone/public/app/utils/range-slider/html.hbs @@ -41,6 +41,7 @@ {{#if disabled}}disabled="true"{{/if}}/> + value="{{initial}}" required + {{#if readonly}} readonly {{/if}} />