aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/account/account.component.html
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-04-06 21:21:03 +0200
committerChocobozzz <florian.bigard@gmail.com>2017-04-06 21:21:03 +0200
commitaf5e743b01f20f24d0c25e786d57f557b21f3a24 (patch)
tree5186d587135f13f00687f8ed6cd8504cdd35799f /client/src/app/account/account.component.html
parent92fb909c9b4a92a00b0d0da7629e6fb003de281b (diff)
downloadPeerTube-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.component.html')
-rw-r--r--client/src/app/account/account.component.html33
1 files changed, 9 insertions, 24 deletions
diff --git a/client/src/app/account/account.component.html b/client/src/app/account/account.component.html
index 2fbb5a908..6f10e79cd 100644
--- a/client/src/app/account/account.component.html
+++ b/client/src/app/account/account.component.html
@@ -1,26 +1,11 @@
1<h3>Account</h3> 1<h3>Account</h3>
2 2
3<div *ngIf="error" class="alert alert-danger">{{ error }}</div> 3<div class="block">
4 4 <h4>Change password</h4>
5<form role="form" (ngSubmit)="changePassword()" [formGroup]="form"> 5 <my-account-change-password></my-account-change-password>
6 <div class="form-group"> 6</div>
7 <label for="new-password">New password</label> 7
8 <input 8<div class="block">
9 type="password" class="form-control" id="new-password" 9 <h4>Update my informations</h4>
10 formControlName="new-password" 10 <my-account-details [user]="user"></my-account-details>
11 > 11</div>
12 <div *ngIf="formErrors['new-password']" class="alert alert-danger">
13 {{ formErrors['new-password'] }}
14 </div>
15 </div>
16
17 <div class="form-group">
18 <label for="name">Confirm new password</label>
19 <input
20 type="password" class="form-control" id="new-confirmed-password"
21 formControlName="new-confirmed-password"
22 >
23 </div>
24
25 <input type="submit" value="Change password" class="btn btn-default" [disabled]="!form.valid">
26</form>