From 7ba47eadcaf8566fda3719b42835c2be279e6825 Mon Sep 17 00:00:00 2001 From: gconsidine Date: Wed, 29 Mar 2017 15:12:34 -0400 Subject: [PATCH 1/5] Move "prompt on launch" checkbox to above input --- awx/ui/client/legacy-styles/forms.less | 14 +- awx/ui/client/src/shared/form-generator.js | 188 ++++++++++----------- 2 files changed, 92 insertions(+), 110 deletions(-) diff --git a/awx/ui/client/legacy-styles/forms.less b/awx/ui/client/legacy-styles/forms.less index 6dbf25d1c7..8c27617ed5 100644 --- a/awx/ui/client/legacy-styles/forms.less +++ b/awx/ui/client/legacy-styles/forms.less @@ -474,16 +474,6 @@ input[type='radio']:checked:before { outline:none; } -.Form-inputLabelContainer { - width: 100%; - display: block !important; -} - -.Form-inputLabelContainer[for=variables] { - width: auto; - display: inline-block !important; -} - .FormToggle {} .FormToggle-container { float: right; @@ -610,6 +600,10 @@ input[type='radio']:checked:before { max-width: 100% !important; } +.Form-checkbox { + float: right; +} + .Form-subCheckbox { margin-top: 5px; font-size: small; diff --git a/awx/ui/client/src/shared/form-generator.js b/awx/ui/client/src/shared/form-generator.js index 78e2208c4b..04bdabccb0 100644 --- a/awx/ui/client/src/shared/form-generator.js +++ b/awx/ui/client/src/shared/form-generator.js @@ -639,7 +639,7 @@ angular.module('FormGenerator', [GeneratorHelpers.name, 'Utilities', listGenerat return html; } - function label() { + function label(options) { var html = ''; if (field.label || field.labelBind) { html += "