1 <div class=
"margin-content">
2 <div class=
"title-page title-page-single">
3 <ng-container *
ngIf=
"!videoFileName" i18n
>Upload your video
</ng-container>
4 <ng-container *
ngIf=
"videoFileName" i18n
>Upload {{ videoFileName }}
</ng-container>
7 <div *
ngIf=
"!isUploadingVideo" class=
"upload-video-container">
8 <div class=
"upload-video">
9 <div class=
"icon icon-upload"></div>
11 <div class=
"button-file">
12 <span i18n
>Select the file to upload
</span>
13 <input #videofileInput
type=
"file" name=
"videofile" id=
"videofile" [accept]=
"videoExtensions" (change)=
"fileChange()" />
16 <div class=
"form-group form-group-channel">
17 <label i18n
for=
"first-step-channel">Channel
</label>
18 <div class=
"peertube-select-container">
19 <select id=
"first-step-channel" [(ngModel)]=
"firstStepChannelId">
20 <option *
ngFor=
"let channel of userVideoChannels" [value]=
"channel.id">{{ channel.label }}
</option>
25 <div class=
"form-group">
26 <label i18n
for=
"first-step-privacy">Privacy
</label>
27 <div class=
"peertube-select-container">
28 <select id=
"first-step-privacy" [(ngModel)]=
"firstStepPrivacyId">
29 <option *
ngFor=
"let privacy of videoPrivacies" [value]=
"privacy.id">{{ privacy.label }}
</option>
30 <option [value]=
"SPECIAL_SCHEDULED_PRIVACY">Scheduled
</option>
37 <div *
ngIf=
"isUploadingVideo" class=
"upload-progress-cancel">
39 [value]=
"videoUploadPercents"
40 [ngClass]=
"{ processing: videoUploadPercents === 100 && videoUploaded === false }"
42 <input *
ngIf=
"videoUploaded === false" type=
"button" value=
"Cancel" (click)=
"cancelUpload()" />
45 <!-- Hidden because we want to load the component -->
46 <form [hidden]=
"!isUploadingVideo" novalidate [formGroup]=
"form">
48 [form]=
"form" [formErrors]=
"formErrors"
49 [validationMessages]=
"validationMessages" [videoPrivacies]=
"videoPrivacies" [userVideoChannels]=
"userVideoChannels"
52 <div class=
"submit-container">
53 <div i18n *
ngIf=
"videoUploaded === false" class=
"message-submit">Publish will be available when upload is finished
</div>
55 <div class=
"submit-button"
56 (click)=
"updateSecondStep()"
57 [ngClass]=
"{ disabled: !form.valid || isUpdatingVideo === true || videoUploaded !== true }"
59 <span class=
"icon icon-validate"></span>
60 <input type=
"button" i18n-value
value=
"Publish" />