aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/login/login.component.html
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/login/login.component.html')
-rw-r--r--client/src/app/login/login.component.html28
1 files changed, 14 insertions, 14 deletions
diff --git a/client/src/app/login/login.component.html b/client/src/app/login/login.component.html
index b7fd25d27..1f6cfdb90 100644
--- a/client/src/app/login/login.component.html
+++ b/client/src/app/login/login.component.html
@@ -1,5 +1,5 @@
1<div class="margin-content"> 1<div class="margin-content">
2 <div class="title-page title-page-single"> 2 <div i18n class="title-page title-page-single">
3 Login 3 Login
4 </div> 4 </div>
5 5
@@ -8,21 +8,21 @@
8 <form role="form" (ngSubmit)="login()" [formGroup]="form"> 8 <form role="form" (ngSubmit)="login()" [formGroup]="form">
9 <div class="form-group"> 9 <div class="form-group">
10 <div> 10 <div>
11 <label for="username">User</label> 11 <label i18n for="username">User</label>
12 <input 12 <input
13 type="text" id="username" placeholder="Username or email address" required tabindex="1" 13 type="text" id="username" i18n-placeholder placeholder="Username or email address" required tabindex="1"
14 formControlName="username" [ngClass]="{ 'input-error': formErrors['username'] }" 14 formControlName="username" [ngClass]="{ 'input-error': formErrors['username'] }"
15 > 15 >
16 <a *ngIf="signupAllowed === true" routerLink="/signup" class="create-an-account"> 16 <a i18n *ngIf="signupAllowed === true" routerLink="/signup" class="create-an-account">
17 or create an account 17 or create an account
18 </a> 18 </a>
19 19
20 <a *ngIf="signupAllowed === false" href="https://joinpeertube.org/en/#getting-started" target="_blank" class="create-an-account"> 20 <a i18n *ngIf="signupAllowed === false" href="https://joinpeertube.org/en/#getting-started" target="_blank" class="create-an-account">
21 or create an account on another instance 21 or create an account on another instance
22 </a> 22 </a>
23 23
24 <my-help 24 <my-help
25 *ngIf="signupAllowed === false" helpType="custom" 25 *ngIf="signupAllowed === false" helpType="custom" i18n-customHtml
26 customHtml="User registration is not allowed on this instance, but you can register on many others!" 26 customHtml="User registration is not allowed on this instance, but you can register on many others!"
27 ></my-help> 27 ></my-help>
28 </div> 28 </div>
@@ -33,13 +33,13 @@
33 </div> 33 </div>
34 34
35 <div class="form-group"> 35 <div class="form-group">
36 <label for="password">Password</label> 36 <label i18n for="password">Password</label>
37 <div> 37 <div>
38 <input 38 <input
39 type="password" name="password" id="password" placeholder="Password" required tabindex="2" 39 type="password" name="password" id="password" i18n-placeholder placeholder="Password" required tabindex="2"
40 formControlName="password" [ngClass]="{ 'input-error': formErrors['password'] }" 40 formControlName="password" [ngClass]="{ 'input-error': formErrors['password'] }"
41 > 41 >
42 <div class="forgot-password-button" (click)="openForgotPasswordModal()">I forgot my password</div> 42 <div i18n class="forgot-password-button" (click)="openForgotPasswordModal()">I forgot my password</div>
43 </div> 43 </div>
44 <div *ngIf="formErrors.password" class="form-error"> 44 <div *ngIf="formErrors.password" class="form-error">
45 {{ formErrors.password }} 45 {{ formErrors.password }}
@@ -56,25 +56,25 @@
56 56
57 <div class="modal-header"> 57 <div class="modal-header">
58 <span class="close" aria-hidden="true" (click)="hideForgotPasswordModal()"></span> 58 <span class="close" aria-hidden="true" (click)="hideForgotPasswordModal()"></span>
59 <h4 class="modal-title">Forgot your password</h4> 59 <h4 i18n class="modal-title">Forgot your password</h4>
60 </div> 60 </div>
61 61
62 <div class="modal-body"> 62 <div class="modal-body">
63 <div class="form-group"> 63 <div class="form-group">
64 <label for="forgot-password-email">Email</label> 64 <label i18n for="forgot-password-email">Email</label>
65 <input 65 <input
66 type="email" id="forgot-password-email" placeholder="Email address" required 66 type="email" id="forgot-password-email" i18n-placeholder placeholder="Email address" required
67 [(ngModel)]="forgotPasswordEmail" #forgotPasswordEmailInput 67 [(ngModel)]="forgotPasswordEmail" #forgotPasswordEmailInput
68 > 68 >
69 </div> 69 </div>
70 70
71 <div class="form-group inputs"> 71 <div class="form-group inputs">
72 <span class="action-button action-button-cancel" (click)="hideForgotPasswordModal()"> 72 <span i18n class="action-button action-button-cancel" (click)="hideForgotPasswordModal()">
73 Cancel 73 Cancel
74 </span> 74 </span>
75 75
76 <input 76 <input
77 type="submit" value="Send me an email to reset my password" class="action-button-submit" 77 type="submit" i18n-value value="Send me an email to reset my password" class="action-button-submit"
78 (click)="askResetPassword()" [disabled]="!forgotPasswordEmailInput.validity.valid" 78 (click)="askResetPassword()" [disabled]="!forgotPasswordEmailInput.validity.valid"
79 > 79 >
80 </div> 80 </div>