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
No related branches found
No related tags found
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 class="section-container" fxLayout="column" fxLayoutAlign="center center">
<h1>Réinitialisation du mot de passe</h1>
<form *ngIf="!token" [formGroup]="resetForm" (ngSubmit)="onSubmit()">
<div class="form-group">
<label for="email">Email</label>
<input
type="email"
autocomplete="on"
formControlName="email"
class="form-control"
[ngClass]="{ 'is-invalid': submitted && f.email.errors }"
/>
<div *ngIf="submitted && f.email.errors" class="invalid-feedback">
<div *ngIf="f.email.errors.required">Email is required</div>
<div class="resetPasswordForm">
<h1>Réinitialisation du mot de passe</h1>
<form *ngIf="!token" [formGroup]="resetForm" (ngSubmit)="onSubmit()">
<div class="form-group">
<label for="email">Courriel personnel</label>
<div fxLayout="row" fxLayoutGap="13px">
<input type="text"
autocomplete="on"
formControlName="email"
class="form-input"
[ngClass]="{ 'is-invalid': submitted && f.email.errors }"/>
</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 class="form-group">
<button [disabled]="loading" class="btn btn-primary">
<span *ngIf="loading" class="spinner-border spinner-border-sm mr-1"></span>
Envoyer
</button>
<a routerLink="../login" class="btn btn-link">Cancel</a>
</div>
</form>
<div class="button" fxLayout="row" fxLayoutAlign="space-around center">
<a routerLink="../login" class="btn btn-link">Annuler</a>
<button [disabled]="loading" class="btn btn-primary">
<span *ngIf="loading" class="spinner-border spinner-border-sm mr-1"></span>
Envoyer
</button>
</div>
</form>
</div>
<form *ngIf="token" [formGroup]="resetFormChangePassword" (ngSubmit)="onSubmitPassword()">
<div class="form-group">
<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';
@Component({
selector: 'app-reset-password',
templateUrl: './reset-password.component.html',
styleUrls: ['./reset-password.component.scss'],
})
export class ResetPasswordComponent implements OnInit {
public resetForm: FormGroup;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment