1 <div class=
"margin-content">
2 <div class=
"title-page title-page-single">
6 <div *
ngIf=
"!isUploadingVideo" class=
"upload-video-container">
7 <div class=
"upload-video">
8 <div class=
"icon icon-upload"></div>
10 <div class=
"button-file">
11 <span>Select the file to upload
</span>
12 <input #videofileInput
type=
"file" name=
"videofile" id=
"videofile" [accept]=
"videoExtensions" (change)=
"fileChange()" />
15 <div class=
"form-group form-group-channel">
16 <label for=
"first-step-channel">Channel
</label>
17 <div class=
"peertube-select-container">
18 <select id=
"first-step-channel" [(ngModel)]=
"firstStepChannelId">
19 <option *
ngFor=
"let channel of userVideoChannels" [value]=
"channel.id">{{ channel.label }}
</option>
24 <div class=
"form-group">
25 <label for=
"first-step-privacy">Privacy
</label>
26 <div class=
"peertube-select-container">
27 <select id=
"first-step-privacy" [(ngModel)]=
"firstStepPrivacyId">
28 <option *
ngFor=
"let privacy of videoPrivacies" [value]=
"privacy.id">{{ privacy.label }}
</option>
36 *
ngIf=
"isUploadingVideo"
39 [value]=
"videoUploadPercents"
40 [ngClass]=
"{ processing: videoUploadPercents === 100 && videoUploaded === false }"
42 <input type=
"button" value=
"Cancel" (click)=
"cancelUpload()" />
45 <!-- Hidden because we need 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 *
ngIf=
"videoUploaded === false" class=
"message-submit">Publish will be available when upload is finished
</div>
55 <div class=
"submit-button" (click)=
"updateSecondStep()" [ngClass]=
"{ disabled: !form.valid || videoUploaded !== true }">
56 <span class=
"icon icon-validate"></span>
57 <input type=
"button" value=
"Publish" />