mirror of
https://github.com/ansible/awx.git
synced 2026-03-01 16:58:46 -03:30
AC-441,442,443
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user