]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/+my-account/my-account-settings/my-account-video-settings/my-account-video-settings.component.html
Add visitor settings, rework logged-in dropdown (#2514)
[github/Chocobozzz/PeerTube.git] / client / src / app / +my-account / my-account-settings / my-account-video-settings / my-account-video-settings.component.html
1 <form role="form" (ngSubmit)="updateDetails()" [formGroup]="form">
2 <div class="form-group">
3 <label i18n for="nsfwPolicy">Default policy on videos containing sensitive content</label>
4 <my-help>
5 <ng-template ptTemplate="customHtml">
6 <ng-container i18n>
7 With <strong>Do not list</strong> or <strong>Blur thumbnails</strong>, a confirmation will be requested to watch the video.
8 </ng-container>
9 </ng-template>
10 </my-help>
11
12 <div class="peertube-select-container">
13 <select id="nsfwPolicy" formControlName="nsfwPolicy">
14 <option i18n value="do_not_list">Do not list</option>
15 <option i18n value="blur">Blur thumbnails</option>
16 <option i18n value="display">Display</option>
17 </select>
18 </div>
19 </div>
20
21 <div class="form-group">
22 <label i18n for="videoLanguages">Only display videos in the following languages/subtitles</label>
23 <my-help>
24 <ng-template ptTemplate="customHtml">
25 <ng-container i18n>In Recently added, Trending, Local, Most liked and Search pages</ng-container>
26 </ng-template>
27 </my-help>
28
29 <div>
30 <p-multiSelect
31 inputId="videoLanguages" [options]="languageItems" formControlName="videoLanguages" [showToggleAll]="true"
32 [defaultLabel]="getDefaultVideoLanguageLabel()" [selectedItemsLabel]="getSelectedVideoLanguageLabel()"
33 emptyFilterMessage="No results found" i18n-emptyFilterMessage
34 ></p-multiSelect>
35 </div>
36 </div>
37
38 <ng-content select="inner-title"></ng-content>
39
40 <div class="form-group">
41 <my-peertube-checkbox
42 inputName="webTorrentEnabled" formControlName="webTorrentEnabled"
43 i18n-labelText labelText="Use P2P to exchange parts of the video with others"
44 ></my-peertube-checkbox>
45 </div>
46
47 <div class="form-group">
48 <my-peertube-checkbox
49 inputName="autoPlayVideo" formControlName="autoPlayVideo"
50 i18n-labelText labelText="Automatically plays video"
51 ></my-peertube-checkbox>
52 </div>
53
54 <div class="form-group">
55 <my-peertube-checkbox
56 inputName="autoPlayNextVideo" formControlName="autoPlayNextVideo"
57 i18n-labelText labelText="Automatically starts playing next video"
58 ></my-peertube-checkbox>
59 </div>
60
61 <input *ngIf="!reactiveUpdate" type="submit" i18n-value value="Save" [disabled]="!form.valid">
62 </form>