2016-05-14 13:28:15 +02:00
|
|
|
<form name="form" class="form-horizontal css-form" ng-submit="form.$valid" novalidate>
|
2016-05-01 19:46:50 +02:00
|
|
|
<div class="form-group">
|
|
|
|
<div class="col-sm-offset-1 col-sm-10">
|
2016-05-20 11:43:47 +02:00
|
|
|
<input id="username" type="text" class="form-control" placeholder="// 'username_email' | tr //" name="uPrincipal" ng-change="vm.reset()" ng-model="user.principal" required>
|
2016-05-14 07:34:54 +02:00
|
|
|
<div class="error-message">
|
2016-05-14 13:28:15 +02:00
|
|
|
<div ng-messages="form.uPrincipal.$error" ng-if="form.uPrincipal.$touched">
|
2016-05-14 07:34:54 +02:00
|
|
|
<span ng-message="required">// 'username_is_required' | tr //</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
2016-05-01 19:46:50 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="col-sm-offset-1 col-sm-10">
|
2016-05-20 11:43:47 +02:00
|
|
|
<input type="password" class="form-control" placeholder="// 'password' | tr //" name="uPassword" ng-change="vm.reset()" ng-model="user.password" required>
|
2016-05-14 07:34:54 +02:00
|
|
|
<div class="error-message">
|
2016-05-14 13:28:15 +02:00
|
|
|
<div ng-messages="form.uPassword.$error" ng-if="form.uPassword.$touched">
|
2016-05-14 07:34:54 +02:00
|
|
|
<span ng-message="required">// 'password_is_required' | tr //</span>
|
|
|
|
</div>
|
|
|
|
<span ng-show="vm.hasError">// vm.errorMessage | tr //</span>
|
|
|
|
</div>
|
2016-05-01 19:46:50 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="col-sm-offset-1 col-sm-10">
|
|
|
|
<div class="pull-right">
|
2016-05-20 11:43:47 +02:00
|
|
|
<button class="btn btn-default" ng-click="vm.doSignIn(user)">// 'sign_in' | tr //</button>
|
2016-05-13 12:48:06 +02:00
|
|
|
<button class="btn btn-success" ng-click="vm.doSignUp()">// 'sign_up' | tr //</button>
|
2016-05-01 19:46:50 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="col-sm-offset-1 col-sm-10">
|
2016-05-14 18:11:28 +02:00
|
|
|
<div class="pull-right">
|
2016-05-13 12:48:06 +02:00
|
|
|
<a href="javascript:void(0)" ng-click="vm.doForgotPassword()">// 'forgot_password' | tr //</a>
|
2016-05-01 19:46:50 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2016-05-14 07:34:54 +02:00
|
|
|
</div>
|
2016-05-01 19:46:50 +02:00
|
|
|
</form>
|