1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-05 05:51:21 +03:00

AC-441,442,443

This commit is contained in:
chouseknecht 2013-09-10 17:12:36 -04:00
parent 365f327887
commit 7246ab2674
2 changed files with 8 additions and 3 deletions

View File

@ -90,7 +90,12 @@ angular.module('FormGenerator', ['GeneratorHelpers', 'ngCookies'])
// Prepend an asterisk to required field label // Prepend an asterisk to required field label
$('.form-control[required]').each(function() { $('.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) { if (options.modal) {

View File

@ -166,7 +166,7 @@
<div class="login-alert" ng-show="(sessionExpired == true)">Your session timed out due to inactivity. Please sign in.</div> <div class="login-alert" ng-show="(sessionExpired == true)">Your session timed out due to inactivity. Please sign in.</div>
<form id="login-form" name="loginForm" class="form-horizontal" autocomplete="off" novalidate > <form id="login-form" name="loginForm" class="form-horizontal" autocomplete="off" novalidate >
<div class="form-group"> <div class="form-group">
<label class="control-label col-lg-3">Username</label> <label class="control-label col-lg-3">* Username</label>
<div class="col-lg-8"> <div class="col-lg-8">
<input type="text" name="login_username" class="form-control" ng-model="login_username" <input type="text" name="login_username" class="form-control" ng-model="login_username"
id="login-username" autocomplete="off" required> id="login-username" autocomplete="off" required>
@ -177,7 +177,7 @@
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="control-label col-lg-3">Password</label> <label class="control-label col-lg-3">* Password</label>
<div class="col-lg-8"> <div class="col-lg-8">
<input type="password" name="login_password" id="login-password" class="form-control" <input type="password" name="login_password" id="login-password" class="form-control"
ng-model="login_password" required autocomplete="off"> ng-model="login_password" required autocomplete="off">