]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/+login/login.component.html
Fix strings that cannot be merged by xlf-merge
[github/Chocobozzz/PeerTube.git] / client / src / app / +login / login.component.html
CommitLineData
11056966
C
1<h1 i18n class="title-page-v2">
2 <strong class="underline-orange">{{ instanceName }}</strong>
3 >
4 Login
5</h1>
192ea60b 6
11056966 7<div class="margin-content">
bc90883f 8 <ng-container *ngIf="!externalAuthError && !isAuthenticatedWithExternalAuth">
11056966
C
9
10 <div class="alert pt-alert-primary" role="alert">
11 <h5 class="alert-heading" i18n>
12 Logging into an account lets you publish content
13 </h5>
14
15 <p *ngIf="signupAllowed" i18n>
16 This instance allows registration. However, be careful to check the <a class="link-orange terms-anchor" (click)="onTermsClick($event, instanceInformation)" href='#'>Terms</a><a class="terms-link" target="_blank" routerLink="/about/instance" fragment="terms">Terms</a> before creating an account.
17 You may also search for another instance to match your exact needs at: <a class="link-orange" href="https://joinpeertube.org/instances" target="_blank" rel="noopener noreferrer">https://joinpeertube.org/instances</a>.
18 </p>
19
20 <p *ngIf="!signupAllowed" i18n>
21 Currently this instance doesn't allow for user registration, you may check the <a (click)="onTermsClick($event, instanceInformation)" href='#'>Terms</a> for more details or find an instance that gives you the possibility to sign up for an account and upload your videos there.
22 Find yours among multiple instances at: <a class="link-orange" href="https://joinpeertube.org/instances" target="_blank" rel="noopener noreferrer">https://joinpeertube.org/instances</a>.
23 </p>
4a8d113b 24 </div>
b1794c53 25
c4a05171
C
26 <div class="alert alert-danger" i18n *ngIf="externalAuthError">
27 Sorry but there was an issue with the external login process. Please <a class="link-orange" routerLink="/about">contact an administrator</a>.
28 </div>
29
30 <div *ngIf="error" class="alert alert-danger">
31 {{ error }}
32
33 <a *ngIf="error === 'User email is not verified.'" class="ms-1 link-orange" i18n routerLink="/verify-account/ask-send-email">
34 Request new verification email
35 </a>
36 </div>
37
40360c17
K
38 <div class="wrapper">
39 <div class="login-form-and-externals">
40
8afade26 41 <form myPluginSelector pluginSelectorId="login-form" role="form" (ngSubmit)="login()" [formGroup]="form">
40360c17
K
42 <div class="form-group">
43 <div>
11056966 44 <label i18n for="username">Username or email address</label>
40360c17 45 <input
11056966 46 type="text" id="username" i18n-placeholder placeholder="Example: john@example.com" required tabindex="1"
9df52d66 47 formControlName="username" class="form-control" [ngClass]="{ 'input-error': formErrors['username'] }" myAutofocus
40360c17
K
48 >
49 </div>
50
11056966 51 <div *ngIf="formErrors.username" class="form-error">{{ formErrors.username }}</div>
7f28f2dd
C
52
53 <div *ngIf="hasUsernameUppercase()" i18n class="form-warning">
54 ⚠️ Most email addresses do not include capital letters.
55 </div>
ebefc902 56 </div>
2b084d70 57
40360c17
K
58 <div class="form-group">
59 <label i18n for="password">Password</label>
11056966 60
a70bf3bd 61 <my-input-text formControlName="password" inputId="password"
f8b530e0
RK
62 i18n-placeholder placeholder="Password"
63 [ngClass]="{ 'input-error': formErrors['password'] }"
a70bf3bd 64 autocomplete="current-password" [tabindex]="2"></my-input-text>
11056966
C
65
66 <div *ngIf="formErrors.password" class="form-error">{{ formErrors.password }}</div>
ebefc902 67 </div>
40360c17 68
266947e5 69 <input type="submit" class="peertube-button orange-button" i18n-value value="Login" [disabled]="!form.valid">
1916c966 70
11056966
C
71 <div class="additional-links">
72 <a i18n role="button" class="link-orange" (click)="openForgotPasswordModal()" i18n-title title="Click here to reset your password">I forgot my password</a>
8406a9e8 73
11056966 74 <ng-container *ngIf="signupAllowed">
40360c17 75 <span>·</span>
11056966
C
76 <a i18n routerLink="/signup" class="link-orange">Create an account</a>
77 </ng-container>
40360c17
K
78 </div>
79 </form>
ebefc902 80
40360c17
K
81 <div class="external-login-blocks" *ngIf="getExternalLogins().length !== 0">
82 <div class="block-title" i18n>Or sign in with</div>
ebefc902 83
40360c17
K
84 <div>
85 <a class="external-login-block" *ngFor="let auth of getExternalLogins()" [href]="getAuthHref(auth)" role="button">
86 {{ auth.authDisplayName }}
87 </a>
88 </div>
4a8d113b 89 </div>
ecb4e35f 90 </div>
897ec54d 91
40360c17 92 <div #instanceInformation class="instance-information">
071f3e51 93 <my-instance-about-accordion
11056966 94 [displayInstanceName]="false"
071f3e51
C
95 (init)="onInstanceAboutAccordionInit($event)" [panels]="instanceInformationPanels"
96 pluginScope="login" pluginHook="filter:login.instance-about-plugin-panels.create.result"
97 ></my-instance-about-accordion>
40360c17
K
98 </div>
99 </div>
4a8d113b 100 </ng-container>
897ec54d 101</div>
ecb4e35f 102
63347a0f
C
103<ng-template #forgotPasswordModal>
104 <div class="modal-header">
105 <h4 i18n class="modal-title">Forgot your password</h4>
457bb213
C
106
107 <my-global-icon iconName="cross" aria-label="Close" role="button" (click)="hideForgotPasswordModal()"></my-global-icon>
63347a0f 108 </div>
ecb4e35f 109
63347a0f 110 <div class="modal-body">
3b3b1820
C
111
112 <div *ngIf="isEmailDisabled()" class="alert alert-danger" i18n>
32d7f2b7 113 We are sorry, you cannot recover your password because your instance administrator did not configure the PeerTube email system.
3b3b1820
C
114 </div>
115
ab0beac7
K
116 <div *ngIf="!isEmailDisabled()" class="forgot-password-instructions" i18n>
117 Enter your email address and we will send you a link to reset your password.
118 </div>
119
3b3b1820 120 <div class="form-group" [hidden]="isEmailDisabled()">
63347a0f
C
121 <label i18n for="forgot-password-email">Email</label>
122 <input
123 type="email" id="forgot-password-email" i18n-placeholder placeholder="Email address" required
124 [(ngModel)]="forgotPasswordEmail" #forgotPasswordEmailInput
125 >
126 </div>
127 </div>
ecb4e35f 128
63347a0f 129 <div class="modal-footer inputs">
a6d5ff76 130 <input
266947e5 131 type="button" role="button" i18n-value value="Cancel" class="peertube-button grey-button"
a6d5ff76
RK
132 (click)="hideForgotPasswordModal()" (key.enter)="hideForgotPasswordModal()"
133 >
ecb4e35f 134
63347a0f 135 <input
266947e5 136 type="submit" i18n-value="Password reset button" value="Reset" class="peertube-button orange-button"
63347a0f
C
137 (click)="askResetPassword()" [disabled]="!forgotPasswordEmailInput.validity.valid"
138 >
ecb4e35f 139 </div>
63347a0f 140</ng-template>