]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/videos/+video-edit/shared/video-edit.component.html
Add ability to disable video comments
[github/Chocobozzz/PeerTube.git] / client / src / app / videos / +video-edit / shared / video-edit.component.html
CommitLineData
4cc66133 1<div class="video-edit row" [formGroup]="form">
ff249f49 2
4cc66133
C
3 <div class="col-md-8">
4 <div class="form-group">
5 <label for="name">Title</label>
6 <input type="text" id="name" formControlName="name" />
7 <div *ngIf="formErrors.name" class="form-error">
8 {{ formErrors.name }}
9 </div>
10 </div>
ff249f49 11
4cc66133 12 <div class="form-group">
cb9244de 13 <label class="label-tags">Tags</label> <span>(press Enter to add)</span>
4cc66133
C
14 <tag-input
15 [ngModel]="tags" [validators]="tagValidators" [errorMessages]="tagValidatorsMessages"
16 formControlName="tags" maxItems="5" modelAsStrings="true"
17 ></tag-input>
ff249f49 18 </div>
ff249f49 19
4cc66133
C
20 <div class="form-group">
21 <label for="description">Description</label>
22 <my-video-description formControlName="description"></my-video-description>
23
24 <div *ngIf="formErrors.description" class="form-error">
25 {{ formErrors.description }}
26 </div>
27 </div>
ff249f49
C
28 </div>
29
4cc66133 30 <div class="col-md-4">
15a7387d
C
31 <div class="form-group">
32 <label>Channel</label>
33 <div class="peertube-select-disabled-container">
34 <select formControlName="channelId">
35 <option *ngFor="let channel of userVideoChannels" [value]="channel.id">{{ channel.label }}</option>
36 </select>
37 </div>
38 </div>
39
4cc66133
C
40 <div class="form-group">
41 <label for="category">Category</label>
15a7387d
C
42 <div class="peertube-select-container">
43 <select id="category" formControlName="category">
44 <option></option>
45 <option *ngFor="let category of videoCategories" [value]="category.id">{{ category.label }}</option>
46 </select>
47 </div>
ff249f49 48
4cc66133
C
49 <div *ngIf="formErrors.category" class="form-error">
50 {{ formErrors.category }}
51 </div>
ff249f49 52 </div>
ff249f49 53
4cc66133
C
54 <div class="form-group">
55 <label for="licence">Licence</label>
15a7387d
C
56 <div class="peertube-select-container">
57 <select id="licence" formControlName="licence">
58 <option></option>
59 <option *ngFor="let licence of videoLicences" [value]="licence.id">{{ licence.label }}</option>
60 </select>
61 </div>
ff249f49 62
4cc66133
C
63 <div *ngIf="formErrors.licence" class="form-error">
64 {{ formErrors.licence }}
65 </div>
ff249f49 66 </div>
ff249f49 67
4cc66133
C
68 <div class="form-group">
69 <label for="language">Language</label>
15a7387d
C
70 <div class="peertube-select-container">
71 <select id="language" formControlName="language">
72 <option></option>
73 <option *ngFor="let language of videoLanguages" [value]="language.id">{{ language.label }}</option>
74 </select>
75 </div>
ff249f49 76
4cc66133
C
77 <div *ngIf="formErrors.language" class="form-error">
78 {{ formErrors.language }}
79 </div>
ff249f49 80 </div>
ff249f49 81
4cc66133
C
82 <div class="form-group">
83 <label for="privacy">Privacy</label>
15a7387d
C
84 <div class="peertube-select-container">
85 <select id="privacy" formControlName="privacy">
86 <option></option>
87 <option *ngFor="let privacy of videoPrivacies" [value]="privacy.id">{{ privacy.label }}</option>
88 </select>
89 </div>
ff249f49 90
4cc66133
C
91 <div *ngIf="formErrors.privacy" class="form-error">
92 {{ formErrors.privacy }}
93 </div>
94 </div>
ff249f49 95
4cc66133
C
96 <div class="form-group form-group-checkbox">
97 <input type="checkbox" id="nsfw" formControlName="nsfw" />
a0d69908 98 <label for="nsfw"></label>
4cc66133 99 <label for="nsfw">This video contains mature or explicit content</label>
ff249f49 100 </div>
4cc66133 101
47564bbe
C
102 <div class="form-group form-group-checkbox">
103 <input type="checkbox" id="commentsEnabled" formControlName="commentsEnabled" />
104 <label for="commentsEnabled"></label>
105 <label for="commentsEnabled">Enable video comments</label>
106 </div>
107
ff249f49
C
108 </div>
109</div>