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 *
ngIf=
"waitTranscodingEnabled"
125 inputName=
"waitTranscoding" formControlName=
"waitTranscoding"
126 i18n-labelText
labelText=
"Wait transcoding before publishing the video"
127 i18n-helpHtml
helpHtml=
"If you decide not to wait for transcoding before publishing the video, it could be unplayable until transcoding ends."
128 ></my-peertube-checkbox>
135 <ngb-tab i18n-title
title=
"Captions">
136 <ng-template ngbTabContent
>
137 <div class=
"captions">
139 <div class=
"captions-header">
140 <a (click)=
"openAddCaptionModal()" class=
"create-caption">
141 <my-global-icon iconName=
"add"></my-global-icon>
142 <ng-container i18n
>Add another caption
</ng-container>
146 <div class=
"form-group" *
ngFor=
"let videoCaption of videoCaptions">
148 <div class=
"caption-entry">
149 <ng-container *
ngIf=
"!videoCaption.action">
151 i18n-title
title=
"See the subtitle file" class=
"caption-entry-label" target=
"_blank" rel=
"noopener noreferrer"
152 [href]=
"videoCaption.captionPath"
153 >{{ videoCaption.language.label }}
</a>
155 <div i18n
class=
"caption-entry-state">Already uploaded
✔</div>
157 <span i18n
class=
"caption-entry-delete" (click)=
"deleteCaption(videoCaption)">Delete
</span>
160 <ng-container *
ngIf=
"videoCaption.action === 'CREATE'">
161 <span class=
"caption-entry-label">{{ videoCaption.language.label }}
</span>
163 <div i18n
class=
"caption-entry-state caption-entry-state-create">Will be created on update
</div>
165 <span i18n
class=
"caption-entry-delete" (click)=
"deleteCaption(videoCaption)">Cancel create
</span>
168 <ng-container *
ngIf=
"videoCaption.action === 'REMOVE'">
169 <span class=
"caption-entry-label">{{ videoCaption.language.label }}
</span>
171 <div i18n
class=
"caption-entry-state caption-entry-state-delete">Will be deleted on update
</div>
173 <span i18n
class=
"caption-entry-delete" (click)=
"deleteCaption(videoCaption)">Cancel deletion
</span>
178 <div i18n
class=
"no-caption" *
ngIf=
"videoCaptions?.length === 0">
186 <ngb-tab i18n-title
title=
"Advanced settings">
187 <ng-template ngbTabContent
>
188 <div class=
"row advanced-settings">
189 <div class=
"col-md-12 col-xl-8">
191 <div class=
"form-group">
192 <label i18n
for=
"previewfile">Video preview
</label>
195 i18n-inputLabel
inputLabel=
"Edit" inputName=
"previewfile" formControlName=
"previewfile"
196 previewWidth=
"360px" previewHeight=
"200px"
197 ></my-preview-upload>
200 <div class=
"form-group">
201 <label i18n
for=
"support">Support
</label>
202 <my-help helpType=
"markdownEnhanced" i18n-preHtml
preHtml=
"Short text to tell people how they can support you (membership platform...)."></my-help>
203 <my-markdown-textarea
204 id=
"support" formControlName=
"support" textareaWidth=
"500px" [previewColumn]=
"true" markdownType=
"enhanced"
205 [classes]=
"{ 'input-error': formErrors['support'] }"
206 ></my-markdown-textarea>
207 <div *
ngIf=
"formErrors.support" class=
"form-error">
208 {{ formErrors.support }}
213 <div class=
"col-md-12 col-xl-4">
214 <div class=
"form-group originally-published-at">
215 <label i18n
for=
"originallyPublishedAt">Original publication date
</label>
216 <my-help i18n-preHtml
preHtml=
"This is the date when the content was originally published (e.g. the release date for a film)"></my-help>
218 id=
"originallyPublishedAt" formControlName=
"originallyPublishedAt" [dateFormat]=
"calendarDateFormat"
219 [locale]=
"calendarLocale" [showTime]=
"true" [hideOnDateTimeSelect]=
"true" [monthNavigator]=
"true" [yearNavigator]=
"true" [yearRange]=
"myYearRange"
223 <div *
ngIf=
"formErrors.originallyPublishedAt" class=
"form-error">
224 {{ formErrors.originallyPublishedAt }}
228 <my-peertube-checkbox
229 inputName=
"commentsEnabled" formControlName=
"commentsEnabled"
230 i18n-labelText
labelText=
"Enable video comments"
231 ></my-peertube-checkbox>
233 <my-peertube-checkbox
234 inputName=
"downloadEnabled" formControlName=
"downloadEnabled"
235 i18n-labelText
labelText=
"Enable download"
236 ></my-peertube-checkbox>
246 <my-video-caption-add-modal
247 #videoCaptionAddModal [existingCaptions]=
"existingCaptions" (captionAdded)=
"onCaptionAdded($event)"
248 ></my-video-caption-add-modal>