2016-05-10 12:43:52 +02:00
|
|
|
<div class="container-fluid container-fluid-custom" ng-controller="ResetPasswordController as vm">
|
|
|
|
<div class="container container-custom">
|
|
|
|
<div class="row extend-height">
|
|
|
|
<div class="section">
|
2016-05-13 12:48:06 +02:00
|
|
|
<h1 class="col-md-12 col-md-offset-2 main-title title-color">// 'reset_password' | tr //</h1>
|
2016-05-10 12:43:52 +02:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-12 col-md-offset-2 main-content">
|
|
|
|
<form name="form" class="form-horizontal css-form" ng-submit="form.$valid && vm.resetPassword(user)" novalidate>
|
|
|
|
<div class="form-group">
|
2016-05-13 12:48:06 +02:00
|
|
|
<label for="password" class="col-sm-3 control-label">// 'password' | tr //:</label>
|
2016-05-10 12:43:52 +02:00
|
|
|
<div class="col-sm-7">
|
|
|
|
<input type="password" class="form-control" id="password" ng-model="user.password" ng-model-options="{ updateOn: 'blur' }" name="uPassword" required password>
|
2016-05-13 12:48:06 +02:00
|
|
|
<p class="help-block small-size-fonts">// 'password_desc' | tr //</p>
|
2016-05-10 12:43:52 +02:00
|
|
|
</div>
|
|
|
|
<div class="col-sm-2">
|
|
|
|
<span class="asterisk">*</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
2016-05-13 12:48:06 +02:00
|
|
|
<label for="confirmPassword" class="col-sm-3 control-label">// 'confirm_password' | tr //:</label>
|
2016-05-10 12:43:52 +02:00
|
|
|
<div class="col-sm-7">
|
|
|
|
<input type="password" class="form-control" id="confirmPassword" ng-model="user.confirmPassword" ng-model-options="{ updateOn: 'blur' }" name="uConfirmPassword" compare-to="user.password">
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-2">
|
|
|
|
<span class="asterisk">*</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="col-md-offset-7 col-md-10">
|
|
|
|
<input type="submit" class="btn btn-default" ng-click="vm.cancel()" value="Cancel">
|
|
|
|
<input type="submit" class="btn btn-primary" ng-disabled="form.$invalid" value="Save">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="error-message">
|
|
|
|
<div ng-messages="form.$dirty && form.uPassword.$error">
|
2016-05-13 12:48:06 +02:00
|
|
|
<span ng-message="required">// 'password_is_required' | tr //</span>
|
|
|
|
<span ng-message="password">// 'password_is_invalid' | tr //</span>
|
2016-05-10 12:43:52 +02:00
|
|
|
</div>
|
|
|
|
<div class="error-message" ng-messages="form.$dirty && form.uConfirmPassword.$error">
|
2016-05-13 12:48:06 +02:00
|
|
|
<span ng-message="compareTo">// 'password_does_not_match' | tr //</span>
|
2016-05-10 12:43:52 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|