|
1 | | -<div class="nat-vertical overflow nat-fill nat-center"> |
2 | | - <div class="nat-padding nat-gap nat-vertical nat-center nat-expand-no-collapse"> |
3 | | - <img src="assets/ichtus.svg" /> |
| 1 | +<form class="body nat-vertical nat-gap-30 nat-margin-standard" [formGroup]="form"> |
| 2 | + <img src="assets/ichtus.svg" alt="logo" /> |
4 | 3 |
|
5 | | - <form class="nat-vertical" style="min-width: 300px" [formGroup]="form"> |
6 | | - <mat-form-field> |
7 | | - <mat-label>Email ou nom d'utilisateur</mat-label> |
8 | | - <input |
9 | | - matInput |
10 | | - formControlName="login" |
11 | | - autofocus |
12 | | - autocomplete="username" |
13 | | - autocorrect="off" |
14 | | - autocapitalize="off" |
15 | | - spellcheck="false" |
16 | | - (keydown.enter)="maybeConfirm()" |
17 | | - /> |
18 | | - <mat-error>{{ form.controls.login.errors | errorMessage }}</mat-error> |
19 | | - </mat-form-field> |
| 4 | + <div class="nat-vertical"> |
| 5 | + <mat-form-field> |
| 6 | + <mat-label>Email ou nom d'utilisateur</mat-label> |
| 7 | + <input |
| 8 | + matInput |
| 9 | + formControlName="login" |
| 10 | + autofocus |
| 11 | + autocomplete="username" |
| 12 | + autocorrect="off" |
| 13 | + autocapitalize="off" |
| 14 | + spellcheck="false" |
| 15 | + (keydown.enter)="maybeConfirm()" |
| 16 | + /> |
| 17 | + <mat-error>{{ form.controls.login.errors | errorMessage }}</mat-error> |
| 18 | + </mat-form-field> |
20 | 19 |
|
21 | | - <mat-form-field> |
22 | | - <mat-label>Mot de passe</mat-label> |
23 | | - <input |
24 | | - matInput |
25 | | - formControlName="password" |
26 | | - autocomplete="current-password" |
27 | | - autocorrect="off" |
28 | | - autocapitalize="off" |
29 | | - spellcheck="false" |
30 | | - [type]="hidePassword ? 'password' : 'text'" |
31 | | - (keydown.enter)="maybeConfirm()" |
32 | | - /> |
33 | | - <button matIconButton matIconSuffix (click)="hidePassword = !hidePassword"> |
34 | | - <mat-icon [fontIcon]="hidePassword ? 'visibility' : 'visibility_off'" /> |
35 | | - </button> |
| 20 | + <mat-form-field> |
| 21 | + <mat-label>Mot de passe</mat-label> |
| 22 | + <input |
| 23 | + matInput |
| 24 | + formControlName="password" |
| 25 | + autocomplete="current-password" |
| 26 | + autocorrect="off" |
| 27 | + autocapitalize="off" |
| 28 | + spellcheck="false" |
| 29 | + [type]="hidePassword ? 'password' : 'text'" |
| 30 | + (keydown.enter)="maybeConfirm()" |
| 31 | + /> |
| 32 | + <button matIconButton matIconSuffix (click)="hidePassword = !hidePassword"> |
| 33 | + <mat-icon [fontIcon]="hidePassword ? 'visibility' : 'visibility_off'" /> |
| 34 | + </button> |
36 | 35 |
|
37 | | - <mat-error>{{ form.controls.password.errors | errorMessage }}</mat-error> |
38 | | - </mat-form-field> |
39 | | - |
40 | | - <div class="nat-horizontal nat-gap-10 nat-right"> |
41 | | - <a matButton routerLink="/user/request-password-reset">Mot de passe oublié ?</a> |
42 | | - <button type="submit" matButton="filled" [disabled]="!form.valid" (click)="maybeConfirm()"> |
43 | | - Se connecter |
44 | | - </button> |
45 | | - </div> |
46 | | - |
47 | | - <a matButton="outlined" class="nat-margin-top" [href]="privacyPolicyUrl">Politique de confidentialité</a> |
| 36 | + <mat-error>{{ form.controls.password.errors | errorMessage }}</mat-error> |
| 37 | + </mat-form-field> |
| 38 | + <div class="nat-horizontal nat-wra nat-wrap-reverse nat-gap-10 nat-right"> |
| 39 | + <a matButton="outlined" routerLink="/user/request-password-reset">Mot de passe oublié ?</a> |
| 40 | + <button type="submit" matButton="filled" [disabled]="!form.valid" (click)="maybeConfirm()"> |
| 41 | + Se connecter |
| 42 | + </button> |
| 43 | + </div> |
| 44 | + </div> |
48 | 45 |
|
49 | | - <mat-divider class="nat-margin" /> |
| 46 | + <mat-divider /> |
50 | 47 |
|
51 | | - <div class="mat-font-title-md" style="text-align: center">Pas encore membre ?</div> |
52 | | - <a type="submit" matButton="outlined" routerLink="/user/new">Adhérer</a> |
53 | | - </form> |
| 48 | + <div class="nat-vertical nat-gap-10"> |
| 49 | + <div class="mat-font-title-md" style="text-align: center">Pas encore membre ?</div> |
| 50 | + <a matButton="outlined" type="submit" routerLink="/user/new">Adhérer</a> |
| 51 | + <a matButton="outlined" [href]="privacyPolicyUrl">Politique de confidentialité</a> |
54 | 52 | </div> |
55 | | -</div> |
| 53 | +</form> |
0 commit comments