Internationnalisation de la page de login

This commit is contained in:
Sébastien André
2021-05-10 19:03:14 +02:00
parent 784bdea786
commit 96fbf5cebd
11 changed files with 333 additions and 386 deletions

View File

@@ -1,14 +1,28 @@
<div class="content">
<mat-card style="max-width: 500px;" flex="50">
<mat-card-header style="padding:10px; background-color: rgba(0,0,0,.03);">
<mat-card-title>Login to the Skydive log</mat-card-title>
<mat-card-title>{{ 'Login_Title' | translate }}</mat-card-title>
<mat-select (selectionChange)="switchLang($event)" [(value)]="selectedLanguageFlag"
style="width: 40px;" >
<mat-select-trigger>
<img src="{{ 'assets/img/' + selectedLanguageFlag + '.svg' }}" style="width: 15px;">
</mat-select-trigger>
<mat-option value="fr" style="width: 50px;">
<img src="assets/img/fr.svg" style="width: 15px;">
</mat-option>
<mat-option value="en" style="width: 50px;">
<img src="assets/img/en.svg" style="width: 15px;">
</mat-option>
</mat-select>
</mat-card-header>
<mat-card-content>
<mat-tab-group mat-align-tabs="center" animationDuration="0ms">
<mat-tab label="Login with a user" tabIndex="-1">
<mat-tab label="{{ 'Login_Tab_WithUser' | translate }}" tabIndex="-1">
<app-login-user></app-login-user>
</mat-tab>
<mat-tab label="Create and login a user" tabIndex="-1">
<mat-tab label="{{ 'Login_Tab_CreateUser' | translate }}" tabIndex="-1">
<app-create-user></app-create-user>
</mat-tab>
</mat-tab-group>