1 <div class=
"margin-content">
2 <div class=
"title-page title-page-single">
6 <div *
ngIf=
"error" class=
"alert alert-danger">{{ error }}
</div>
8 <div *
ngIf=
"!isUploadingVideo" class=
"upload-video-container">
9 <div class=
"upload-video">
10 <div class=
"icon icon-upload"></div>
12 <div class=
"button-file">
13 <span>Select the file to upload
</span>
14 <input #videofileInput
type=
"file" name=
"videofile" id=
"videofile" (change)=
"fileChange()" />
17 <div class=
"form-group form-group-channel">
18 <label for=
"first-step-channel">Channel
</label>
19 <div class=
"peertube-select-container">
20 <select id=
"first-step-channel" [(ngModel)]=
"firstStepChannelId">
21 <option *
ngFor=
"let channel of userVideoChannels" [value]=
"channel.id">{{ channel.label }}
</option>
26 <div class=
"form-group">
27 <label for=
"first-step-privacy">Privacy
</label>
28 <div class=
"peertube-select-container">
29 <select id=
"first-step-privacy" [(ngModel)]=
"firstStepPrivacyId">
30 <option *
ngFor=
"let privacy of videoPrivacies" [value]=
"privacy.id">{{ privacy.label }}
</option>
38 *
ngIf=
"isUploadingVideo" [value]=
"videoUploadPercents"
39 [ngClass]=
"{ processing: videoUploadPercents === 100 && videoUploaded === false }"
42 <!-- Hidden because we need to load the component -->
43 <form [hidden]=
"!isUploadingVideo" novalidate [formGroup]=
"form">
45 [form]=
"form" [formErrors]=
"formErrors"
46 [validationMessages]=
"validationMessages" [videoPrivacies]=
"videoPrivacies" [userVideoChannels]=
"userVideoChannels"
50 <div class=
"submit-container">
51 <div *
ngIf=
"videoUploaded === false" class=
"message-submit">Publish will be available when upload is finished
</div>
53 <div class=
"submit-button" (click)=
"updateSecondStep()" [ngClass]=
"{ disabled: !form.valid || videoUploaded !== true }">
54 <span class=
"icon icon-validate"></span>
55 <input type=
"button" value=
"Publish" />