1 <div class=
"margin-content">
2 <div i18n
class=
"title-page title-page-single">
6 <div *
ngIf=
"error" class=
"alert alert-danger">{{ error }}
</div>
8 <form role=
"form" (ngSubmit)=
"login()" [formGroup]=
"form">
9 <div class=
"form-group">
11 <label i18n
for=
"username">User
</label>
13 type=
"text" id=
"username" i18n-placeholder
placeholder=
"Username or email address" required
tabindex=
"1"
14 formControlName=
"username" [ngClass]=
"{ 'input-error': formErrors['username'] }"
16 <a i18n *
ngIf=
"signupAllowed === true" routerLink=
"/signup" class=
"create-an-account">
20 <a i18n *
ngIf=
"signupAllowed === false" href=
"https://joinpeertube.org/en/#getting-started" target=
"_blank" title=
"Click here to see how to get started!" class=
"create-an-account">
21 or create an account on another instance
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!"
30 <div *
ngIf=
"formErrors.username" class=
"form-error">
31 {{ formErrors.username }}
35 <div class=
"form-group">
36 <label i18n
for=
"password">Password
</label>
39 type=
"password" name=
"password" id=
"password" i18n-placeholder
placeholder=
"Password" required
tabindex=
"2"
40 formControlName=
"password" [ngClass]=
"{ 'input-error': formErrors['password'] }"
42 <a i18n
class=
"forgot-password-button" (click)=
"openForgotPasswordModal()" title=
"Click here to reset your password">I forgot my password
</a>
44 <div *
ngIf=
"formErrors.password" class=
"form-error">
45 {{ formErrors.password }}
49 <input type=
"submit" value=
"Login" [disabled]=
"!form.valid">
53 <ng-template #forgotPasswordModal
>
54 <div class=
"modal-header">
55 <h4 i18n
class=
"modal-title">Forgot your password
</h4>
56 <span class=
"close" aria-hidden=
"true" (click)=
"hideForgotPasswordModal()"></span>
59 <div class=
"modal-body">
60 <div class=
"form-group">
61 <label i18n
for=
"forgot-password-email">Email
</label>
63 type=
"email" id=
"forgot-password-email" i18n-placeholder
placeholder=
"Email address" required
64 [(ngModel)]=
"forgotPasswordEmail" #forgotPasswordEmailInput
69 <div class=
"modal-footer inputs">
70 <span i18n
class=
"action-button action-button-cancel" (click)=
"hideForgotPasswordModal()">Cancel
</span>
73 type=
"submit" i18n-value
value=
"Send me an email to reset my password" class=
"action-button-submit"
74 (click)=
"askResetPassword()" [disabled]=
"!forgotPasswordEmailInput.validity.valid"