mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-06-17 03:02:46 +02:00
Many issues arise when using angular-bootstrap 0.13. Migration to 1.0 is straightforward, offers a more stable interface, extra directives and fixes many bugs. Migration guide: https://github.com/angular-ui/bootstrap/wiki/Migration-guide-for-prefixes Fixes #1142 Fixes #1131
35 lines
1.7 KiB
HTML
35 lines
1.7 KiB
HTML
<div ng-controller="AuthenticationController">
|
|
<h3 class="col-md-12 text-center">Or with your account</h3>
|
|
<div class="col-xs-offset-2 col-xs-8 col-md-offset-4 col-md-4">
|
|
<form name="userForm" ng-submit="signin(userForm.$valid)" class="signin" novalidate autocomplete="off">
|
|
<fieldset>
|
|
<div class="form-group" show-errors>
|
|
<label for="username">Username</label>
|
|
<input type="text" id="username" name="username" class="form-control" ng-model="credentials.username" placeholder="Username" lowercase required>
|
|
<div ng-messages="userForm.username.$error" role="alert">
|
|
<p class="help-block error-text" ng-message="required">Username is required.</p>
|
|
</div>
|
|
</div>
|
|
<div class="form-group" show-errors>
|
|
<label for="password">Password</label>
|
|
<input type="password" id="password" name="password" class="form-control" ng-model="credentials.password" placeholder="Password" required>
|
|
<div ng-messages="userForm.password.$error" role="alert">
|
|
<p class="help-block error-text" ng-message="required">Password is required.</p>
|
|
</div>
|
|
</div>
|
|
<div class="text-center form-group">
|
|
<button type="submit" class="btn btn-primary">Sign in</button>
|
|
or
|
|
<a ui-sref="authentication.signup">Sign up</a>
|
|
</div>
|
|
<div class="text-center forgot-password">
|
|
<a ui-sref="password.forgot">Forgot your password?</a>
|
|
</div>
|
|
<uib-alert type="danger" ng-show="error" class="text-center text-danger">
|
|
<span ng-bind="error"></span>
|
|
</uib-alert>
|
|
</fieldset>
|
|
</form>
|
|
</div>
|
|
</div>
|