From 7246ab267481b0003a755dda0cce7a2d4e74400d Mon Sep 17 00:00:00 2001 From: chouseknecht Date: Tue, 10 Sep 2013 17:12:36 -0400 Subject: [PATCH] AC-441,442,443 --- awx/ui/static/lib/ansible/form-generator.js | 7 ++++++- awx/ui/templates/ui/index.html | 4 ++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/awx/ui/static/lib/ansible/form-generator.js b/awx/ui/static/lib/ansible/form-generator.js index 6c47b29223..a8efc3eed1 100644 --- a/awx/ui/static/lib/ansible/form-generator.js +++ b/awx/ui/static/lib/ansible/form-generator.js @@ -90,7 +90,12 @@ angular.module('FormGenerator', ['GeneratorHelpers', 'ngCookies']) // Prepend an asterisk to required field label $('.form-control[required]').each(function() { - var txt = $(this).parent().parent().find('label').prepend('* '); + var label = $(this).parent().parent().find('label'); + var rgx = /^\*/; + if ( !rgx.test(label.text()) ) { + // required field does not have leading * + label.prepend('* '); + } }); if (options.modal) { diff --git a/awx/ui/templates/ui/index.html b/awx/ui/templates/ui/index.html index c2291bba4e..8ff46a77c0 100644 --- a/awx/ui/templates/ui/index.html +++ b/awx/ui/templates/ui/index.html @@ -166,7 +166,7 @@
Your session timed out due to inactivity. Please sign in.
- +
@@ -177,7 +177,7 @@
- +