2015-05-05 03:10:25 +02:00
|
|
|
<div>
|
|
|
|
<div class="modal-header">
|
2016-03-23 18:39:41 +01:00
|
|
|
<img ng-src="{{logoBlack.custom_asset_file_attributes.attachment_url}}" alt="{{logo.custom_asset_file_attributes.attachment}}" class="modal-logo"/>
|
2019-12-18 13:04:38 +01:00
|
|
|
<h1 translate>{{ 'app.public.common.change_your_password' }}</h1>
|
2015-05-05 03:10:25 +02:00
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
2016-03-23 18:39:41 +01:00
|
|
|
<uib-alert ng-repeat="alert in alerts" type="{{alert.type}}" close="closeAlert($index)">{{alert.msg}}</uib-alert>
|
2015-05-05 03:10:25 +02:00
|
|
|
<div class="panel panel-default bg-light">
|
|
|
|
<div class="panel-body">
|
|
|
|
<form name="passwordEditForm" class="form-horizontal" ng-keydown="passwordEditForm.$valid && $event.which == 13 && changePassword()">
|
|
|
|
<div class="form-group" ng-class="{'has-error': passwordEditForm.password.$dirty && passwordEditForm.password.$invalid}">
|
|
|
|
<div class="col-sm-12">
|
|
|
|
<div class="input-group">
|
|
|
|
<span class="input-group-addon"><i class="fa fa-key"></i></span>
|
2016-03-23 18:39:41 +01:00
|
|
|
<input type="password"
|
|
|
|
name="password"
|
|
|
|
ng-model="user.password"
|
|
|
|
class="form-control"
|
2019-12-18 13:04:38 +01:00
|
|
|
placeholder="{{ 'app.public.common.your_new_password' | translate }}"
|
2016-03-23 18:39:41 +01:00
|
|
|
required
|
2022-07-29 17:37:42 +02:00
|
|
|
ng-minlength="12">
|
2015-05-05 03:10:25 +02:00
|
|
|
</div>
|
2019-12-18 13:04:38 +01:00
|
|
|
<span class="help-block" ng-show="passwordEditForm.password.$dirty && passwordEditForm.password.$error.required" translate>{{ 'app.public.common.password_is_required' }}</span>
|
|
|
|
<span class="help-block" ng-show="passwordEditForm.password.$dirty && passwordEditForm.password.$error.minlength" translate>{{ 'app.public.common.password_is_too_short' }}</span>
|
2015-05-05 03:10:25 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group" ng-class="{'has-error': passwordEditForm.password_confirmation.$dirty && passwordEditForm.password_confirmation.$invalid}">
|
|
|
|
<div class="col-sm-12">
|
|
|
|
<div class="input-group">
|
|
|
|
<span class="input-group-addon"><i class="fa fa-key"></i></span>
|
2016-03-23 18:39:41 +01:00
|
|
|
<input type="password"
|
|
|
|
name="password_confirmation"
|
|
|
|
ng-model="user.password_confirmation"
|
|
|
|
class="form-control"
|
2019-12-18 13:04:38 +01:00
|
|
|
placeholder="{{ 'app.public.common.type_your_password_again' | translate }}"
|
2016-03-23 18:39:41 +01:00
|
|
|
required
|
2022-07-29 17:37:42 +02:00
|
|
|
ng-minlength="12"
|
2016-03-23 18:39:41 +01:00
|
|
|
match="user.password">
|
2015-05-05 03:10:25 +02:00
|
|
|
</div>
|
2019-12-18 13:04:38 +01:00
|
|
|
<span class="help-block" ng-show="passwordEditForm.password_confirmation.$dirty && passwordEditForm.password_confirmation.$error.required" translate>{{ 'app.public.common.password_confirmation_is_required' }}</span>
|
|
|
|
<span class="help-block" ng-show="passwordEditForm.password_confirmation.$error.match" translate>{{ 'app.public.common.password_does_not_match_with_confirmation' }}</span>
|
2015-05-05 03:10:25 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="panel-footer no-padder">
|
2023-11-27 16:21:07 +01:00
|
|
|
<button class="fab-button is-secondary button-full" ng-click="changePassword()" ng-disabled="passwordEditForm.$invalid" translate>{{ 'app.shared.buttons.confirm'}}</button>
|
2015-05-05 03:10:25 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2019-04-18 11:35:09 +02:00
|
|
|
</div>
|