From c156a0af999024343292565bc42cc7d94c884706 Mon Sep 17 00:00:00 2001 From: Marliana Lara Date: Thu, 15 Mar 2018 12:08:46 -0400 Subject: [PATCH] Add capacity adjustment slider label --- .../client/lib/components/input/lookup.partial.html | 13 +++++++------ .../capacity-adjuster/capacity-adjuster.block.less | 13 ++++++++++++- .../capacity-adjuster.partial.html | 1 + awx/ui/client/src/shared/directives.js | 8 ++------ 4 files changed, 22 insertions(+), 13 deletions(-) diff --git a/awx/ui/client/lib/components/input/lookup.partial.html b/awx/ui/client/lib/components/input/lookup.partial.html index e3633aa743..e74c516ab6 100644 --- a/awx/ui/client/lib/components/input/lookup.partial.html +++ b/awx/ui/client/lib/components/input/lookup.partial.html @@ -23,12 +23,13 @@
-
- -
-
- {{ tag.hostname }} - {{ tag }} +
+ {{ tag.hostname }} + {{ tag }} +
+
+ +
diff --git a/awx/ui/client/src/instance-groups/capacity-adjuster/capacity-adjuster.block.less b/awx/ui/client/src/instance-groups/capacity-adjuster/capacity-adjuster.block.less index 251124f6d2..a524c3b1a8 100644 --- a/awx/ui/client/src/instance-groups/capacity-adjuster/capacity-adjuster.block.less +++ b/awx/ui/client/src/instance-groups/capacity-adjuster/capacity-adjuster.block.less @@ -1,7 +1,18 @@ .CapacityAdjuster { + margin-right: @at-space-4x; + position: relative; + + &-valueLabel { + bottom: @at-space-5x; + color: @at-color-body-text; + font-size: @at-font-size; + position: absolute; + text-align: center; + width: 100%; + } + .at-InputSlider { align-items: center; - margin-right: @at-space-4x; } .at-InputSlider p { diff --git a/awx/ui/client/src/instance-groups/capacity-adjuster/capacity-adjuster.partial.html b/awx/ui/client/src/instance-groups/capacity-adjuster/capacity-adjuster.partial.html index ebadbe8461..c6a5bca81b 100644 --- a/awx/ui/client/src/instance-groups/capacity-adjuster/capacity-adjuster.partial.html +++ b/awx/ui/client/src/instance-groups/capacity-adjuster/capacity-adjuster.partial.html @@ -1,4 +1,5 @@
+ {{ state.capacity_adjustment }}

{{min_capacity.label}} {{min_capacity.value}}

value.toFixed(2)); + ngModel.$formatters.push(value => parseFloat(value)); } }; })