diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-04-06 21:21:03 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-04-06 21:21:03 +0200 |
commit | af5e743b01f20f24d0c25e786d57f557b21f3a24 (patch) | |
tree | 5186d587135f13f00687f8ed6cd8504cdd35799f /client/src/app/account/account-change-password/account-change-password.component.html | |
parent | 92fb909c9b4a92a00b0d0da7629e6fb003de281b (diff) | |
download | PeerTube-af5e743b01f20f24d0c25e786d57f557b21f3a24.tar.gz PeerTube-af5e743b01f20f24d0c25e786d57f557b21f3a24.tar.zst PeerTube-af5e743b01f20f24d0c25e786d57f557b21f3a24.zip |
Client: add ability for user to change nsfw settings
Diffstat (limited to 'client/src/app/account/account-change-password/account-change-password.component.html')
-rw-r--r-- | client/src/app/account/account-change-password/account-change-password.component.html | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/client/src/app/account/account-change-password/account-change-password.component.html b/client/src/app/account/account-change-password/account-change-password.component.html new file mode 100644 index 000000000..92d9f900a --- /dev/null +++ b/client/src/app/account/account-change-password/account-change-password.component.html | |||
@@ -0,0 +1,24 @@ | |||
1 | <div *ngIf="error" class="alert alert-danger">{{ error }}</div> | ||
2 | |||
3 | <form role="form" (ngSubmit)="changePassword()" [formGroup]="form"> | ||
4 | <div class="form-group"> | ||
5 | <label for="new-password">New password</label> | ||
6 | <input | ||
7 | type="password" class="form-control" id="new-password" | ||
8 | formControlName="new-password" | ||
9 | > | ||
10 | <div *ngIf="formErrors['new-password']" class="alert alert-danger"> | ||
11 | {{ formErrors['new-password'] }} | ||
12 | </div> | ||
13 | </div> | ||
14 | |||
15 | <div class="form-group"> | ||
16 | <label for="name">Confirm new password</label> | ||
17 | <input | ||
18 | type="password" class="form-control" id="new-confirmed-password" | ||
19 | formControlName="new-confirmed-password" | ||
20 | > | ||
21 | </div> | ||
22 | |||
23 | <input type="submit" value="Change password" class="btn btn-default" [disabled]="!form.valid"> | ||
24 | </form> | ||