Skip to content

Commit

Permalink
Merge pull request #4737 from natwestmarkets/nwm-contrib/waltz-4735-l…
Browse files Browse the repository at this point in the history
…ogin-enter-key

NWM-Contrib: Login: enter key to submit log in form
  • Loading branch information
davidwatkins73 authored Mar 5, 2020
2 parents 82514c9 + 2eb28d3 commit 7e06da5
Showing 1 changed file with 33 additions and 29 deletions.
62 changes: 33 additions & 29 deletions waltz-ng/client/navbar/directives/navbar-profile.html
Original file line number Diff line number Diff line change
Expand Up @@ -175,35 +175,39 @@ <h3 class="modal-title">
<small ng-bind="logoOverlayText"></small>
</h3>
</div>

<div class="modal-body">
<form>
<label>Username</label>
<input class='form-control input-sm'
ng-model="username"
autofocus
placeholder="username">

<label>Password</label>
<input class='form-control input-sm'
type="password"
ng-model="password"
placeholder="password">
</form>
</div>

<div class="modal-footer">
<button class="btn btn-primary"
type="button"
ng-click="ok()">
OK
</button>
<button class="btn btn-warning"
type="button"
ng-click="cancel()">
Cancel
</button>
</div>
<form name="loginForm"
novalidate>
<div class="modal-body">
<div class="form-group">
<label>Username</label>
<input class='form-control input-sm'
ng-model="username"
autofocus
required
placeholder="username"/>
</div>
<div class="form-group">
<label>Password</label>
<input class='form-control input-sm'
type="password"
ng-model="password"
placeholder="password"/>
</div>
</div>
<div class="modal-footer">
<button class="btn btn-primary"
type="submit"
ng-disabled="loginForm.$invalid"
ng-click="ok()">
OK
</button>
<button class="btn btn-warning"
type="button"
ng-click="cancel()">
Cancel
</button>
</div>
</form>
</script>
</li>

Expand Down

0 comments on commit 7e06da5

Please sign in to comment.