]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/login/login.component.html
Add manage buttons for own channels and account, video counts (#2421)
[github/Chocobozzz/PeerTube.git] / client / src / app / login / login.component.html
CommitLineData
d235f6b0 1<div class="margin-content">
b1d40cff 2 <div i18n class="title-page title-page-single">
d235f6b0
C
3 Login
4 </div>
192ea60b 5
000eb0e4
RK
6 <div class="alert alert-warning" *ngIf="from.upload" role="alert">
7 <h6 class="alert-heading" i18n>
8 If you are looking for an account…
9 </h6>
10 <div i18n>
11 Currently this instance doesn't allow for user registration, but you can find an instance
12 that gives you the possibility to sign up for an account and upload your videos there.
13 Find yours among multiple instances at <a class="alert-link" [href]="instancesIndexUrl" target="_blank" rel="noopener noreferrer">{{ instancesIndexUrl }}</a>
14 , a directory of instances recommended by this instance.
15 </div>
16 </div>
17
d9eaee39
JM
18 <div *ngIf="error" class="alert alert-danger">{{ error }}
19 <span *ngIf="error === 'User email is not verified.'"> <a i18n routerLink="/verify-account/ask-send-email">Request new verification email.</a></span>
20 </div>
b1794c53 21
d235f6b0
C
22 <form role="form" (ngSubmit)="login()" [formGroup]="form">
23 <div class="form-group">
2b084d70 24 <div>
b1d40cff 25 <label i18n for="username">User</label>
2b084d70 26 <input
b1d40cff 27 type="text" id="username" i18n-placeholder placeholder="Username or email address" required tabindex="1"
9fe44067 28 formControlName="username" [ngClass]="{ 'input-error': formErrors['username'] }" #emailInput
2b084d70 29 >
b1d40cff 30 <a i18n *ngIf="signupAllowed === true" routerLink="/signup" class="create-an-account">
2b084d70
C
31 or create an account
32 </a>
33
f88e73f7 34 <a i18n *ngIf="signupAllowed === false" href="https://joinpeertube.org/instances#instances-list" target="_blank" title="Click here to see a list of instances where to register" class="create-an-account">
2b084d70
C
35 or create an account on another instance
36 </a>
37
421d935d
C
38 <my-help *ngIf="signupAllowed === false">
39 <ng-template ptTemplate="customHtml">
40 <ng-container i18n>User registration is not allowed on this instance, but you can register on many others!</ng-container>
41 </ng-template>
42 </my-help>
2b084d70
C
43 </div>
44
a2b817d3 45 <div *ngIf="formErrors.username" class="form-error">
d235f6b0 46 {{ formErrors.username }}
897ec54d 47 </div>
d235f6b0 48 </div>
b1794c53 49
d235f6b0 50 <div class="form-group">
b1d40cff 51 <label i18n for="password">Password</label>
ecb4e35f
C
52 <div>
53 <input
b1d40cff 54 type="password" name="password" id="password" i18n-placeholder placeholder="Password" required tabindex="2"
ecb4e35f
C
55 formControlName="password" [ngClass]="{ 'input-error': formErrors['password'] }"
56 >
696fa4c0 57 <a i18n class="forgot-password-button" (click)="openForgotPasswordModal()" title="Click here to reset your password">I forgot my password</a>
ecb4e35f 58 </div>
a2b817d3 59 <div *ngIf="formErrors.password" class="form-error">
d235f6b0 60 {{ formErrors.password }}
897ec54d 61 </div>
d235f6b0 62 </div>
897ec54d 63
baf0a8c9 64 <input type="submit" i18n-value value="Login" [disabled]="!form.valid">
d235f6b0 65 </form>
897ec54d 66</div>
ecb4e35f 67
63347a0f
C
68<ng-template #forgotPasswordModal>
69 <div class="modal-header">
70 <h4 i18n class="modal-title">Forgot your password</h4>
457bb213
C
71
72 <my-global-icon iconName="cross" aria-label="Close" role="button" (click)="hideForgotPasswordModal()"></my-global-icon>
63347a0f 73 </div>
ecb4e35f 74
63347a0f 75 <div class="modal-body">
3b3b1820
C
76
77 <div *ngIf="isEmailDisabled()" class="alert alert-danger" i18n>
32d7f2b7 78 We are sorry, you cannot recover your password because your instance administrator did not configure the PeerTube email system.
3b3b1820
C
79 </div>
80
81 <div class="form-group" [hidden]="isEmailDisabled()">
63347a0f
C
82 <label i18n for="forgot-password-email">Email</label>
83 <input
84 type="email" id="forgot-password-email" i18n-placeholder placeholder="Email address" required
85 [(ngModel)]="forgotPasswordEmail" #forgotPasswordEmailInput
86 >
87 </div>
88 </div>
ecb4e35f 89
63347a0f
C
90 <div class="modal-footer inputs">
91 <span i18n class="action-button action-button-cancel" (click)="hideForgotPasswordModal()">Cancel</span>
ecb4e35f 92
63347a0f
C
93 <input
94 type="submit" i18n-value value="Send me an email to reset my password" class="action-button-submit"
95 (click)="askResetPassword()" [disabled]="!forgotPasswordEmailInput.validity.valid"
96 >
ecb4e35f 97 </div>
63347a0f 98</ng-template>