mirror of https://github.com/Chocobozzz/PeerTube
fix forgotten/reset password UI (#3351)
Co-authored-by: kimsible <kimsible@users.noreply.github.com> Co-authored-by: Rigel Kent <par@rigelk.eu>pull/3339/head
parent
b2aecc1ecb
commit
ab0beac72f
|
@ -91,6 +91,10 @@
|
||||||
We are sorry, you cannot recover your password because your instance administrator did not configure the PeerTube email system.
|
We are sorry, you cannot recover your password because your instance administrator did not configure the PeerTube email system.
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div *ngIf="!isEmailDisabled()" class="forgot-password-instructions" i18n>
|
||||||
|
Enter your email address and we will send you a link to reset your password.
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="form-group" [hidden]="isEmailDisabled()">
|
<div class="form-group" [hidden]="isEmailDisabled()">
|
||||||
<label i18n for="forgot-password-email">Email</label>
|
<label i18n for="forgot-password-email">Email</label>
|
||||||
<input
|
<input
|
||||||
|
@ -107,7 +111,7 @@
|
||||||
>
|
>
|
||||||
|
|
||||||
<input
|
<input
|
||||||
type="submit" i18n-value value="Send me an email to reset my password" class="action-button-submit"
|
type="submit" i18n-value="Password reset button" value="Reset" class="action-button-submit"
|
||||||
(click)="askResetPassword()" [disabled]="!forgotPasswordEmailInput.validity.valid"
|
(click)="askResetPassword()" [disabled]="!forgotPasswordEmailInput.validity.valid"
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -17,6 +17,35 @@ input[type=submit] {
|
||||||
@include orange-button;
|
@include orange-button;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.modal-body {
|
||||||
|
text-align: left;
|
||||||
|
|
||||||
|
.forgot-password-instructions {
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-footer.inputs {
|
||||||
|
.action-button.action-button-cancel {
|
||||||
|
width: auto !important;
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media screen and (max-width: #{map-get($container-max-widths, sm)}) {
|
||||||
|
.modal-body {
|
||||||
|
#forgot-password-email {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-footer.inputs {
|
||||||
|
.action-button.action-button-cancel {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.create-an-account, .forgot-password-button {
|
.create-an-account, .forgot-password-button {
|
||||||
color: pvar(--mainForegroundColor);
|
color: pvar(--mainForegroundColor);
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
Loading…
Reference in New Issue