Skip to content

Commit 8018f6a

Browse files
sudhirvermadgolovin
authored andcommitted
JBDS-4066 DevSuite Installer Account step styles are inconsistent with Target Folder step
1 parent ef4f60f commit 8018f6a

1 file changed

Lines changed: 14 additions & 4 deletions

File tree

browser/pages/account/account.html

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,30 @@
1414
<input type="text" id="username" name="username" class="login-form-input form-control" ng-model="acctCtrl.username" ng-disabled="acctCtrl.isLoginBtnClicked" required aria-describedby="usernameStatus" autofocus/>
1515
<!--<span class="glyphicon glyphicon-remove form-control-feedback" aria-hidden="true" ng-show="(accountForm.$submitted || accountForm.username.$touched) && accountForm.username.$invalid"></span>-->
1616
<span id="usernameStatus" class="sr-only" ng-show="(accountForm.$submitted || accountForm.username.$touched) && accountForm.username.$invalid">(error)</span>
17-
<div ng-show="(accountForm.$submitted || accountForm.username.$touched) && accountForm.username.$error.required" class="align-to-input help-block has-error">Please enter a username.</div>
1817
</div>
1918
<div class="login-form-input-container form-group has-feedback" ng-class="{'has-error has-feedback': (accountForm.$submitted || accountForm.password.$touched) && accountForm.password.$invalid}">
2019
<label for="password" class="login-form-label">Password</label>
2120
<input type="password" id="password" name="password" class="login-form-input form-control" ng-model="acctCtrl.password" ng-disabled="acctCtrl.isLoginBtnClicked" required aria-describedby="passwordStatus"/>
2221
<!--<span class="glyphicon glyphicon-remove form-control-feedback" aria-hidden="true" ng-show="(accountForm.$submitted || accountForm.password.$touched) && accountForm.password.$invalid"></span>-->
2322
<span id="passwordStatus" class="sr-only" ng-show="(accountForm.$submitted || accountForm.password.$touched) && accountForm.password.$invalid">(error)</span>
24-
<div ng-show="(accountForm.$submitted || accountForm.password.$touched) && accountForm.password.$error.required" class="align-to-input help-block has-error">Please enter a password.</div>
2523
</div>
26-
<div ng-show="accountForm.$submitted && (acctCtrl.authFailed || acctCtrl.tandcNotSigned || acctCtrl.httpError)" class="form-group has-error pull-right">
27-
<div id="invalidLoginError" ng-show="accountForm.$submitted && acctCtrl.authFailed" class="help-block">
24+
<div ng-show="(accountForm.$submitted || accountForm.password.$touched) && ((acctCtrl.authFailed || acctCtrl.tandcNotSigned || acctCtrl.httpError) || (accountForm.username.$error.required || accountForm.password.$error.required))" class="form-group has-error pull-right">
25+
<div id="invalidLoginError" ng-show="accountForm.$submitted && acctCtrl.authFailed && !accountForm.username.$error.required && !accountForm.password.$error.required" class="help-block">
2826
<span id="invalidLoginIcon" class="pficon pficon-error-circle-o"></span>
2927
<strong id="invalidLoginMessage">Invalid account information, please try again.</strong>
3028
</div>
29+
<div ng-show="(accountForm.$submitted || accountForm.password.$touched) && accountForm.username.$error.required && accountForm.password.$error.required" class="help-block">
30+
<span class="pficon pficon-error-circle-o"></span>
31+
<strong>Please enter your username and password.</strong>
32+
</div>
33+
<div ng-show="accountForm.username.$error.required === !accountForm.password.$error.required" class="help-block">
34+
<span class="pficon pficon-error-circle-o"></span>
35+
<strong>Please enter your username.</strong>
36+
</div>
37+
<div ng-show="accountForm.password.$error.required === !accountForm.username.$error.required" class="help-block">
38+
<span class="pficon pficon-error-circle-o"></span>
39+
<strong>Please enter your password.</strong>
40+
</div>
3141
<div id="tcError" ng-show="accountForm.$submitted && acctCtrl.tandcNotSigned" class="help-block">
3242
<span id="tcIcon" class="pficon pficon-error-circle-o"></span>
3343
<strong id="tcMessage">Terms and Conditions for CDK have not been signed.</strong>

0 commit comments

Comments
 (0)