diff options
Diffstat (limited to 'client/src/app/videos/+video-edit/video-add-components/video-upload.component.html')
-rw-r--r-- | client/src/app/videos/+video-edit/video-add-components/video-upload.component.html | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/client/src/app/videos/+video-edit/video-add-components/video-upload.component.html b/client/src/app/videos/+video-edit/video-add-components/video-upload.component.html new file mode 100644 index 000000000..8c0723155 --- /dev/null +++ b/client/src/app/videos/+video-edit/video-add-components/video-upload.component.html | |||
@@ -0,0 +1,58 @@ | |||
1 | <div *ngIf="!isUploadingVideo" class="upload-video-container"> | ||
2 | <div class="upload-video"> | ||
3 | <div class="icon icon-upload"></div> | ||
4 | |||
5 | <div class="button-file"> | ||
6 | <span i18n>Select the file to upload</span> | ||
7 | <input #videofileInput type="file" name="videofile" id="videofile" [accept]="videoExtensions" (change)="fileChange()" /> | ||
8 | </div> | ||
9 | <span class="button-file-extension">(.mp4, .webm, .ogv)</span> | ||
10 | |||
11 | <div class="form-group form-group-channel"> | ||
12 | <label i18n for="first-step-channel">Channel</label> | ||
13 | <div class="peertube-select-container"> | ||
14 | <select id="first-step-channel" [(ngModel)]="firstStepChannelId"> | ||
15 | <option *ngFor="let channel of userVideoChannels" [value]="channel.id">{{ channel.label }}</option> | ||
16 | </select> | ||
17 | </div> | ||
18 | </div> | ||
19 | |||
20 | <div class="form-group"> | ||
21 | <label i18n for="first-step-privacy">Privacy</label> | ||
22 | <div class="peertube-select-container"> | ||
23 | <select id="first-step-privacy" [(ngModel)]="firstStepPrivacyId"> | ||
24 | <option *ngFor="let privacy of videoPrivacies" [value]="privacy.id">{{ privacy.label }}</option> | ||
25 | <option [value]="SPECIAL_SCHEDULED_PRIVACY">Scheduled</option> | ||
26 | </select> | ||
27 | </div> | ||
28 | </div> | ||
29 | </div> | ||
30 | </div> | ||
31 | |||
32 | <div *ngIf="isUploadingVideo" class="upload-progress-cancel"> | ||
33 | <p-progressBar | ||
34 | [value]="videoUploadPercents" | ||
35 | [ngClass]="{ processing: videoUploadPercents === 100 && videoUploaded === false }" | ||
36 | ></p-progressBar> | ||
37 | <input *ngIf="videoUploaded === false" type="button" value="Cancel" (click)="cancelUpload()" /> | ||
38 | </div> | ||
39 | |||
40 | <!-- Hidden because we want to load the component --> | ||
41 | <form [hidden]="!isUploadingVideo" novalidate [formGroup]="form"> | ||
42 | <my-video-edit | ||
43 | [form]="form" [formErrors]="formErrors" [videoCaptions]="videoCaptions" | ||
44 | [validationMessages]="validationMessages" [videoPrivacies]="videoPrivacies" [userVideoChannels]="userVideoChannels" | ||
45 | ></my-video-edit> | ||
46 | |||
47 | <div class="submit-container"> | ||
48 | <div i18n *ngIf="videoUploaded === false" class="message-submit">Publish will be available when upload is finished</div> | ||
49 | |||
50 | <div class="submit-button" | ||
51 | (click)="updateSecondStep()" | ||
52 | [ngClass]="{ disabled: !form.valid || isUpdatingVideo === true || videoUploaded !== true }" | ||
53 | > | ||
54 | <span class="icon icon-validate"></span> | ||
55 | <input type="button" i18n-value value="Publish" /> | ||
56 | </div> | ||
57 | </div> | ||
58 | </form> \ No newline at end of file | ||