1 <div class=
"video-edit" [formGroup]=
"form">
2 <ngb-tabset class=
"root-tabset bootstrap">
4 <ngb-tab i18n-title
title=
"Basic info">
5 <ng-template ngbTabContent
>
8 <div class=
"form-group">
9 <label i18n
for=
"name">Title
</label>
10 <input type=
"text" id=
"name" formControlName=
"name" />
11 <div *
ngIf=
"formErrors.name" class=
"form-error">
16 <div class=
"form-group">
17 <label i18n
class=
"label-tags">Tags
</label>
18 <my-help i18n-preHtml
preHtml=
"Tags could be used to suggest relevant recommendations.</br>Press Enter to add a new tag."></my-help>
20 [validators]=
"tagValidators" [errorMessages]=
"tagValidatorsMessages"
21 i18n-placeholder
placeholder=
"+ Tag" i18n-secondaryPlaceholder
secondaryPlaceholder=
"Enter a new tag"
22 formControlName=
"tags" maxItems=
"5" modelAsStrings=
"true"
26 <div class=
"form-group">
27 <label i18n
for=
"description">Description
</label>
28 <my-help helpType=
"markdownText" i18n-preHtml
preHtml=
"Video descriptions are truncated by default and require manual action to expand them."></my-help>
29 <my-markdown-textarea truncate=
"250" formControlName=
"description"></my-markdown-textarea>
31 <div *
ngIf=
"formErrors.description" class=
"form-error">
32 {{ formErrors.description }}
37 <div class=
"col-md-4">
38 <div class=
"form-group">
39 <label i18n
>Channel
</label>
40 <div class=
"peertube-select-container">
41 <select formControlName=
"channelId">
42 <option *
ngFor=
"let channel of userVideoChannels" [value]=
"channel.id">{{ channel.label }}
</option>
47 <div class=
"form-group">
48 <label i18n
for=
"category">Category
</label>
49 <div class=
"peertube-select-container">
50 <select id=
"category" formControlName=
"category">
52 <option *
ngFor=
"let category of videoCategories" [value]=
"category.id">{{ category.label }}
</option>
56 <div *
ngIf=
"formErrors.category" class=
"form-error">
57 {{ formErrors.category }}
61 <div class=
"form-group">
62 <label i18n
for=
"licence">Licence
</label>
63 <div class=
"peertube-select-container">
64 <select id=
"licence" formControlName=
"licence">
66 <option *
ngFor=
"let licence of videoLicences" [value]=
"licence.id">{{ licence.label }}
</option>
70 <div *
ngIf=
"formErrors.licence" class=
"form-error">
71 {{ formErrors.licence }}
75 <div class=
"form-group">
76 <label i18n
for=
"language">Language
</label>
77 <div class=
"peertube-select-container">
78 <select id=
"language" formControlName=
"language">
80 <option *
ngFor=
"let language of videoLanguages" [value]=
"language.id">{{ language.label }}
</option>
84 <div *
ngIf=
"formErrors.language" class=
"form-error">
85 {{ formErrors.language }}
89 <div class=
"form-group">
90 <label i18n
for=
"privacy">Privacy
</label>
91 <div class=
"peertube-select-container">
92 <select id=
"privacy" formControlName=
"privacy">
94 <option *
ngFor=
"let privacy of videoPrivacies" [value]=
"privacy.id">{{ privacy.label }}
</option>
95 <option *
ngIf=
"schedulePublicationPossible" [value]=
"SPECIAL_SCHEDULED_PRIVACY">Scheduled
</option>
99 <div *
ngIf=
"formErrors.privacy" class=
"form-error">
100 {{ formErrors.privacy }}
104 <div *
ngIf=
"schedulePublicationEnabled" class=
"form-group">
105 <label i18n
for=
"schedulePublicationAt">Schedule publication ({{ calendarTimezone }})
</label>
107 id=
"schedulePublicationAt" formControlName=
"schedulePublicationAt" [dateFormat]=
"calendarDateFormat"
108 [locale]=
"calendarLocale" [minDate]=
"minScheduledDate" [showTime]=
"true" [hideOnDateTimeSelect]=
"true"
112 <div *
ngIf=
"formErrors.schedulePublicationAt" class=
"form-error">
113 {{ formErrors.schedulePublicationAt }}
117 <my-peertube-checkbox
118 inputName=
"nsfw" formControlName=
"nsfw"
119 i18n-labelText
labelText=
"This video contains mature or explicit content"
120 i18n-helpHtml
helpHtml=
"Some instances do not list videos containing mature or explicit content by default."
121 ></my-peertube-checkbox>
123 <my-peertube-checkbox
124 inputName=
"commentsEnabled" formControlName=
"commentsEnabled"
125 i18n-labelText
labelText=
"Enable video comments"
126 ></my-peertube-checkbox>
128 <my-peertube-checkbox
129 inputName=
"waitTranscoding" formControlName=
"waitTranscoding"
130 i18n-labelText
labelText=
"Wait transcoding before publishing the video"
131 i18n-helpHtml
helpHtml=
"If you decide not to wait for transcoding before publishing the video, it could be unplayable until transcoding ends."
132 ></my-peertube-checkbox>
139 <ngb-tab i18n-title
title=
"Captions">
140 <ng-template ngbTabContent
>
141 <div class=
"captions">
143 <div class=
"captions-header">
144 <a (click)=
"openAddCaptionModal()" class=
"create-caption">
145 <span class=
"icon icon-add"></span>
146 <ng-container i18n
>Add another caption
</ng-container>
150 <div class=
"form-group" *
ngFor=
"let videoCaption of videoCaptions">
152 <div class=
"caption-entry">
153 <ng-container *
ngIf=
"!videoCaption.action">
155 i18n-title
title=
"See the subtitle file" class=
"caption-entry-label" target=
"_blank" rel=
"noopener noreferrer"
156 [href]=
"videoCaption.captionPath"
157 >{{ videoCaption.language.label }}
</a>
159 <div i18n
class=
"caption-entry-state">Already uploaded
✔</div>
161 <span i18n
class=
"caption-entry-delete" (click)=
"deleteCaption(videoCaption)">Delete
</span>
164 <ng-container *
ngIf=
"videoCaption.action === 'CREATE'">
165 <span class=
"caption-entry-label">{{ videoCaption.language.label }}
</span>
167 <div i18n
class=
"caption-entry-state caption-entry-state-create">Will be created on update
</div>
169 <span i18n
class=
"caption-entry-delete" (click)=
"deleteCaption(videoCaption)">Cancel create
</span>
172 <ng-container *
ngIf=
"videoCaption.action === 'REMOVE'">
173 <span class=
"caption-entry-label">{{ videoCaption.language.label }}
</span>
175 <div i18n
class=
"caption-entry-state caption-entry-state-delete">Will be deleted on update
</div>
177 <span i18n
class=
"caption-entry-delete" (click)=
"deleteCaption(videoCaption)">Cancel deletion
</span>
182 <div i18n
class=
"no-caption" *
ngIf=
"videoCaptions?.length === 0">
190 <ngb-tab i18n-title
title=
"Advanced settings">
191 <ng-template ngbTabContent
>
192 <div class=
"advanced-settings">
193 <div class=
"form-group">
195 i18n-inputLabel
inputLabel=
"Upload thumbnail" inputName=
"thumbnailfile" formControlName=
"thumbnailfile"
196 previewWidth=
"200px" previewHeight=
"110px"
200 <div class=
"form-group">
202 i18n-inputLabel
inputLabel=
"Upload preview" inputName=
"previewfile" formControlName=
"previewfile"
203 previewWidth=
"360px" previewHeight=
"200px"
207 <div class=
"form-group">
208 <label i18n
for=
"support">Support
</label>
209 <my-help helpType=
"markdownEnhanced" i18n-preHtml
preHtml=
"Short text to tell people how they can support you (membership platform...)."></my-help>
210 <my-markdown-textarea
211 id=
"support" formControlName=
"support" textareaWidth=
"500px" [previewColumn]=
"true" markdownType=
"enhanced"
212 [classes]=
"{ 'input-error': formErrors['support'] }"
213 ></my-markdown-textarea>
214 <div *
ngIf=
"formErrors.support" class=
"form-error">
215 {{ formErrors.support }}
226 <my-video-caption-add-modal
227 #videoCaptionAddModal [existingCaptions]=
"existingCaptions" (captionAdded)=
"onCaptionAdded($event)"
228 ></my-video-caption-add-modal>