1 <div class=
"video-edit row" [formGroup]=
"form">
2 <tabset class=
"root-tabset bootstrap">
4 <tab heading=
"Basic info">
6 <div class=
"form-group">
7 <label for=
"name">Title
</label>
8 <input type=
"text" id=
"name" formControlName=
"name" />
9 <div *
ngIf=
"formErrors.name" class=
"form-error">
14 <div class=
"form-group">
15 <label class=
"label-tags">Tags
</label> <span>(press Enter to add)
</span>
17 [ngModel]=
"tags" [validators]=
"tagValidators" [errorMessages]=
"tagValidatorsMessages"
18 formControlName=
"tags" maxItems=
"5" modelAsStrings=
"true"
22 <div class=
"form-group">
23 <label for=
"description">Description
</label>
24 <my-markdown-textarea truncate=
"250" formControlName=
"description"></my-markdown-textarea>
26 <div *
ngIf=
"formErrors.description" class=
"form-error">
27 {{ formErrors.description }}
32 <div class=
"col-md-4">
33 <div class=
"form-group">
34 <label>Channel
</label>
35 <div class=
"peertube-select-disabled-container">
36 <select formControlName=
"channelId">
37 <option *
ngFor=
"let channel of userVideoChannels" [value]=
"channel.id">{{ channel.label }}
</option>
42 <div class=
"form-group">
43 <label for=
"category">Category
</label>
44 <div class=
"peertube-select-container">
45 <select id=
"category" formControlName=
"category">
47 <option *
ngFor=
"let category of videoCategories" [value]=
"category.id">{{ category.label }}
</option>
51 <div *
ngIf=
"formErrors.category" class=
"form-error">
52 {{ formErrors.category }}
56 <div class=
"form-group">
57 <label for=
"licence">Licence
</label>
58 <div class=
"peertube-select-container">
59 <select id=
"licence" formControlName=
"licence">
61 <option *
ngFor=
"let licence of videoLicences" [value]=
"licence.id">{{ licence.label }}
</option>
65 <div *
ngIf=
"formErrors.licence" class=
"form-error">
66 {{ formErrors.licence }}
70 <div class=
"form-group">
71 <label for=
"language">Language
</label>
72 <div class=
"peertube-select-container">
73 <select id=
"language" formControlName=
"language">
75 <option *
ngFor=
"let language of videoLanguages" [value]=
"language.id">{{ language.label }}
</option>
79 <div *
ngIf=
"formErrors.language" class=
"form-error">
80 {{ formErrors.language }}
84 <div class=
"form-group">
85 <label for=
"privacy">Privacy
</label>
86 <div class=
"peertube-select-container">
87 <select id=
"privacy" formControlName=
"privacy">
89 <option *
ngFor=
"let privacy of videoPrivacies" [value]=
"privacy.id">{{ privacy.label }}
</option>
93 <div *
ngIf=
"formErrors.privacy" class=
"form-error">
94 {{ formErrors.privacy }}
98 <div class=
"form-group form-group-checkbox">
99 <input type=
"checkbox" id=
"nsfw" formControlName=
"nsfw" />
100 <label for=
"nsfw"></label>
101 <label for=
"nsfw">This video contains mature or explicit content
</label>
104 <div class=
"form-group form-group-checkbox">
105 <input type=
"checkbox" id=
"commentsEnabled" formControlName=
"commentsEnabled" />
106 <label for=
"commentsEnabled"></label>
107 <label for=
"commentsEnabled">Enable video comments
</label>
113 <tab heading=
"Advanced settings">
114 <div class=
"col-md-12 advanced-settings">
115 <div class=
"form-group">
117 inputLabel=
"Upload thumbnail" inputName=
"thumbnailfile" formControlName=
"thumbnailfile"
118 previewWidth=
"200px" previewHeight=
"110px"
122 <div class=
"form-group">
124 inputLabel=
"Upload preview" inputName=
"previewfile" formControlName=
"previewfile"
125 previewWidth=
"360px" previewHeight=
"200px"
129 <div class=
"form-group">
130 <label for=
"support">Support (markdown)
</label>
131 <my-markdown-textarea
132 id=
"support" formControlName=
"support" textareaWidth=
"500px" [previewColumn]=
"true" markdownType=
"enhanced"
133 [classes]=
"{ 'input-error': formErrors['support'] }"
134 ></my-markdown-textarea>
135 <div *
ngIf=
"formErrors.support" class=
"form-error">
136 {{ formErrors.support }}