harbor/views/reset-password.htm

50 lines
3.0 KiB
HTML
Raw Normal View History

2016-06-25 21:12:17 +02:00
<div class="container-fluid container-fluid-custom" element-height ng-controller="ResetPasswordController as vm">
<modal-dialog modal-title="// vm.modalTitle //" modal-message='// vm.modalMessage //' confirm-only="vm.confirmOnly" action="vm.action()"></modal-dialog>
<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>
<div class="row">
<div class="col-md-12 col-md-offset-2 main-content">
2016-05-14 07:34:54 +02:00
<form name="form" class="form-horizontal css-form" ng-submit="form.$valid" 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>
<div class="col-sm-7">
<input type="password" class="form-control" id="password" ng-model="user.password" ng-change="vm.reset()" name="uPassword" ng-model-options="{ debounce: 250 }" required password>
<div class="error-message" ng-messages="(form.$submitted || form.uPassword.$touched) && form.uPassword.$error">
<span ng-message="required">// 'password_is_required' | tr //</span>
<span ng-message="password">// 'password_is_invalid' | tr //</span>
</div>
2016-05-13 12:48:06 +02:00
<p class="help-block small-size-fonts">// 'password_desc' | tr //</p>
</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>
<div class="col-sm-7">
<input type="password" class="form-control" id="confirmPassword" ng-model="user.confirmPassword" ng-change="vm.reset()" name="uConfirmPassword" ng-model-options="{ debounce: 250 }" compare-to="user.password">
<div class="error-message" ng-messages="(form.$submitted || form.uConfirmPassword.$touched) && form.uConfirmPassword.$error">
<span ng-message="compareTo">// 'password_does_not_match' | tr //</span>
</div>
</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">
<button type="submit" class="btn btn-primary" ng-click="form.$valid && vm.resetPassword(user)">// 'save' | tr //</button>
<button type="submit" class="btn btn-default" ng-click="vm.cancel()">// 'cancel' | tr //</button>
</div>
</div>
<div class="error-message">
2016-05-14 07:34:54 +02:00
<span ng-show="vm.hasError">// vm.errorMessage //</span>
</div>
</form>
</div>
</div>
</div>
</div>
</div>