Login: enter key to submit log in form
#ENA-769
<small ng-bind="logoOverlayText"></small>
</h3>
</div>
-
+ <form name="loginForm"
+ novalidate>
<div class="modal-body">
- <form>
+ <div class="form-group">
<label>Username</label>
<input class='form-control input-sm'
ng-model="username"
autofocus
- placeholder="username">
-
+ required
+ placeholder="username"/>
+ </div>
+ <div class="form-group">
<label>Password</label>
<input class='form-control input-sm'
type="password"
ng-model="password"
- placeholder="password">
- </form>
+ placeholder="password"/>
+ </div>
</div>
-
<div class="modal-footer">
<button class="btn btn-primary"
- type="button"
+ type="submit"
+ ng-disabled="loginForm.$invalid"
ng-click="ok()">
OK
</button>
Cancel
</button>
</div>
+ </form>
</script>
</li>
