aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/login/login.component.html
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-03-28 18:22:59 +0200
committerChocobozzz <me@florianbigard.com>2018-03-28 18:22:59 +0200
commit2b084d7048a2d8a571d601916bdd21cef3a36311 (patch)
tree0cf646a0789889ba2bfa8a5f9ba49f41d6ddca9a /client/src/app/login/login.component.html
parent5afdd0a52f2f1fa79ed9bf241b5a525366658fa1 (diff)
downloadPeerTube-2b084d7048a2d8a571d601916bdd21cef3a36311.tar.gz
PeerTube-2b084d7048a2d8a571d601916bdd21cef3a36311.tar.zst
PeerTube-2b084d7048a2d8a571d601916bdd21cef3a36311.zip
Add link to register in login form
Diffstat (limited to 'client/src/app/login/login.component.html')
-rw-r--r--client/src/app/login/login.component.html27
1 files changed, 21 insertions, 6 deletions
diff --git a/client/src/app/login/login.component.html b/client/src/app/login/login.component.html
index 660a08280..b7fd25d27 100644
--- a/client/src/app/login/login.component.html
+++ b/client/src/app/login/login.component.html
@@ -7,11 +7,26 @@
7 7
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 <label for="username">User</label> 10 <div>
11 <input 11 <label for="username">User</label>
12 type="text" id="username" placeholder="Username or email address" required 12 <input
13 formControlName="username" [ngClass]="{ 'input-error': formErrors['username'] }" 13 type="text" id="username" placeholder="Username or email address" required tabindex="1"
14 > 14 formControlName="username" [ngClass]="{ 'input-error': formErrors['username'] }"
15 >
16 <a *ngIf="signupAllowed === true" routerLink="/signup" class="create-an-account">
17 or create an account
18 </a>
19
20 <a *ngIf="signupAllowed === false" href="https://joinpeertube.org/en/#getting-started" target="_blank" class="create-an-account">
21 or create an account on another instance
22 </a>
23
24 <my-help
25 *ngIf="signupAllowed === false" helpType="custom"
26 customHtml="User registration is not allowed on this instance, but you can register on many others!"
27 ></my-help>
28 </div>
29
15 <div *ngIf="formErrors.username" class="form-error"> 30 <div *ngIf="formErrors.username" class="form-error">
16 {{ formErrors.username }} 31 {{ formErrors.username }}
17 </div> 32 </div>
@@ -21,7 +36,7 @@
21 <label for="password">Password</label> 36 <label for="password">Password</label>
22 <div> 37 <div>
23 <input 38 <input
24 type="password" name="password" id="password" placeholder="Password" required 39 type="password" name="password" id="password" placeholder="Password" required tabindex="2"
25 formControlName="password" [ngClass]="{ 'input-error': formErrors['password'] }" 40 formControlName="password" [ngClass]="{ 'input-error': formErrors['password'] }"
26 > 41 >
27 <div class="forgot-password-button" (click)="openForgotPasswordModal()">I forgot my password</div> 42 <div class="forgot-password-button" (click)="openForgotPasswordModal()">I forgot my password</div>