From d79d20a630fb93dd7a9e321687e50705ccd683df Mon Sep 17 00:00:00 2001 From: chouseknecht Date: Thu, 12 Sep 2013 22:38:34 -0400 Subject: [PATCH] Labels for inline checkboxes found outside of a group are now bold.s --- awx/ui/static/less/ansible-ui.less | 9 +++++++++ awx/ui/static/lib/ansible/form-generator.js | 4 +++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/awx/ui/static/less/ansible-ui.less b/awx/ui/static/less/ansible-ui.less index 531c5ef7f9..3fd5ce31bb 100644 --- a/awx/ui/static/less/ansible-ui.less +++ b/awx/ui/static/less/ansible-ui.less @@ -29,6 +29,11 @@ body { .normal-weight { font-weight: normal; } .no-bullets { list-style: none; } + +.bold-text .checkbox-inline { + font-weight: bold; +} + /* Working... spinner */ .spinny { display: none; @@ -461,6 +466,10 @@ select.field-mini-height { padding-left: 40px; } +.checkbox-group .checkbox-options:first-child { + padding-left: 35px; +} + /* Display list actions next to search widget */ diff --git a/awx/ui/static/lib/ansible/form-generator.js b/awx/ui/static/lib/ansible/form-generator.js index fe7fae4f64..c4e6aa873b 100644 --- a/awx/ui/static/lib/ansible/form-generator.js +++ b/awx/ui/static/lib/ansible/form-generator.js @@ -678,6 +678,7 @@ angular.module('FormGenerator', ['GeneratorHelpers', 'ngCookies']) if (field.type == 'checkbox_group') { html += "\n"; + html += "
\n"; for (var i=0; i < field.fields.length; i++) { html += buildCheckbox(field.fields[i], field.fields[i].name); } @@ -695,6 +696,7 @@ angular.module('FormGenerator', ['GeneratorHelpers', 'ngCookies']) field.max + "
\n"; } html += "
\n"; + html += "\n"; } //checkbox @@ -702,7 +704,7 @@ angular.module('FormGenerator', ['GeneratorHelpers', 'ngCookies']) html += "\n"; html += "
\n"; + html += "class=\"" + getFieldWidth() + " bold-text\">\n"; html += buildCheckbox(field, fld); html += "
\n"; html += "
\n"