Skip to content
Snippets Groups Projects
Commit 3a676624 authored by Antonin COQUET's avatar Antonin COQUET
Browse files

fix: edit reset password page (waiting for official design)

parent 827d13c4
Branches
Tags
3 merge requests!178release V1.10.0,!111Dev,!104fix: edit reset password page (waiting for official design)
<div fxLayout="column" class="content-container full-screen"> <div fxLayout="column" class="content-container full-screen">
<div class="section-container" fxLayout="column" fxLayoutAlign="center center"> <div class="section-container" fxLayout="column" fxLayoutAlign="center center">
<h1>Réinitialisation du mot de passe</h1> <div class="resetPasswordForm">
<form *ngIf="!token" [formGroup]="resetForm" (ngSubmit)="onSubmit()"> <h1>Réinitialisation du mot de passe</h1>
<div class="form-group"> <form *ngIf="!token" [formGroup]="resetForm" (ngSubmit)="onSubmit()">
<label for="email">Email</label> <div class="form-group">
<input <label for="email">Courriel personnel</label>
type="email" <div fxLayout="row" fxLayoutGap="13px">
autocomplete="on" <input type="text"
formControlName="email" autocomplete="on"
class="form-control" formControlName="email"
[ngClass]="{ 'is-invalid': submitted && f.email.errors }" class="form-input"
/> [ngClass]="{ 'is-invalid': submitted && f.email.errors }"/>
<div *ngIf="submitted && f.email.errors" class="invalid-feedback"> </div>
<div *ngIf="f.email.errors.required">Email is required</div> <div *ngIf="submitted && f.email.errors" class="invalid-feedback">
<div *ngIf="f.email.errors.required" >L'adresse e-mail est requise</div>
</div>
</div> </div>
</div> <div class="button" fxLayout="row" fxLayoutAlign="space-around center">
<div class="form-group"> <a routerLink="../login" class="btn btn-link">Annuler</a>
<button [disabled]="loading" class="btn btn-primary"> <button [disabled]="loading" class="btn btn-primary">
<span *ngIf="loading" class="spinner-border spinner-border-sm mr-1"></span> <span *ngIf="loading" class="spinner-border spinner-border-sm mr-1"></span>
Envoyer Envoyer
</button> </button>
<a routerLink="../login" class="btn btn-link">Cancel</a> </div>
</div> </form>
</form> </div>
<form *ngIf="token" [formGroup]="resetFormChangePassword" (ngSubmit)="onSubmitPassword()"> <form *ngIf="token" [formGroup]="resetFormChangePassword" (ngSubmit)="onSubmitPassword()">
<div class="form-group"> <div class="form-group">
<label for="password">Mot de passe</label> <label for="password">Mot de passe</label>
......
.resetPasswordForm {
max-width: 500px;
}
.button {
margin-top: 20px;
}
.form-input {
width: 100%;
}
\ No newline at end of file
...@@ -8,6 +8,7 @@ import { CustomRegExp } from '../utils/CustomRegExp'; ...@@ -8,6 +8,7 @@ import { CustomRegExp } from '../utils/CustomRegExp';
@Component({ @Component({
selector: 'app-reset-password', selector: 'app-reset-password',
templateUrl: './reset-password.component.html', templateUrl: './reset-password.component.html',
styleUrls: ['./reset-password.component.scss'],
}) })
export class ResetPasswordComponent implements OnInit { export class ResetPasswordComponent implements OnInit {
public resetForm: FormGroup; public resetForm: FormGroup;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment