diff options
author | Chocobozzz <me@florianbigard.com> | 2017-12-20 15:25:44 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2017-12-20 15:25:44 +0100 |
commit | a0d69908239718ca3bd03097fbd9eb7e2a13ff75 (patch) | |
tree | 2a9c8f8abab25967277363f611ff3a7d45105ffe /client/src/app/account/account-settings | |
parent | 15a7387da888492068e2ce3d1e39639d142f6c6e (diff) | |
download | PeerTube-a0d69908239718ca3bd03097fbd9eb7e2a13ff75.tar.gz PeerTube-a0d69908239718ca3bd03097fbd9eb7e2a13ff75.tar.zst PeerTube-a0d69908239718ca3bd03097fbd9eb7e2a13ff75.zip |
Customize checkboxs
Diffstat (limited to 'client/src/app/account/account-settings')
-rw-r--r-- | client/src/app/account/account-settings/account-details/account-details.component.html | 29 | ||||
-rw-r--r-- | client/src/app/account/account-settings/account-details/account-details.component.scss | 6 |
2 files changed, 18 insertions, 17 deletions
diff --git a/client/src/app/account/account-settings/account-details/account-details.component.html b/client/src/app/account/account-settings/account-details/account-details.component.html index 593b87e29..c8e1e73b0 100644 --- a/client/src/app/account/account-settings/account-details/account-details.component.html +++ b/client/src/app/account/account-settings/account-details/account-details.component.html | |||
@@ -1,20 +1,23 @@ | |||
1 | <div *ngIf="error" class="alert alert-danger">{{ error }}</div> | 1 | <div *ngIf="error" class="alert alert-danger">{{ error }}</div> |
2 | 2 | ||
3 | <form role="form" (ngSubmit)="updateDetails()" [formGroup]="form"> | 3 | <form role="form" (ngSubmit)="updateDetails()" [formGroup]="form"> |
4 | <input | 4 | <div class="form-group"> |
5 | type="checkbox" id="displayNSFW" | 5 | <input |
6 | formControlName="displayNSFW" | 6 | type="checkbox" id="displayNSFW" |
7 | > | 7 | formControlName="displayNSFW" |
8 | <label for="displayNSFW">Display videos that contain mature or explicit content</label> | 8 | > |
9 | <div *ngIf="formErrors['displayNSFW']" class="alert alert-danger"> | 9 | <label for="displayNSFW"></label> |
10 | {{ formErrors['displayNSFW'] }} | 10 | <label for="displayNSFW">Display videos that contain mature or explicit content</label> |
11 | </div> | ||
12 | |||
13 | <div class="form-group"> | ||
14 | <input | ||
15 | type="checkbox" id="autoPlayVideo" | ||
16 | formControlName="autoPlayVideo" | ||
17 | > | ||
18 | <label for="autoPlayVideo"></label> | ||
19 | <label for="autoPlayVideo">Automatically plays video</label> | ||
11 | </div> | 20 | </div> |
12 | <br/> | ||
13 | <input | ||
14 | type="checkbox" id="autoPlayVideo" | ||
15 | formControlName="autoPlayVideo" | ||
16 | > | ||
17 | <label for="autoPlayVideo">Automatically plays video</label> | ||
18 | 21 | ||
19 | <input type="submit" value="Save" [disabled]="!form.valid"> | 22 | <input type="submit" value="Save" [disabled]="!form.valid"> |
20 | </form> | 23 | </form> |
diff --git a/client/src/app/account/account-settings/account-details/account-details.component.scss b/client/src/app/account/account-settings/account-details/account-details.component.scss index 1bdb19a38..4e8dfde1d 100644 --- a/client/src/app/account/account-settings/account-details/account-details.component.scss +++ b/client/src/app/account/account-settings/account-details/account-details.component.scss | |||
@@ -1,10 +1,8 @@ | |||
1 | @import '_variables'; | 1 | @import '_variables'; |
2 | @import '_mixins'; | 2 | @import '_mixins'; |
3 | 3 | ||
4 | label { | 4 | input[type=checkbox] { |
5 | font-size: 15px; | 5 | @include peertube-checkbox(1px); |
6 | font-weight: $font-regular; | ||
7 | margin-left: 5px; | ||
8 | } | 6 | } |
9 | 7 | ||
10 | input[type=submit] { | 8 | input[type=submit] { |