]>
Commit | Line | Data |
---|---|---|
27e1a06c C |
1 | <div class="margin-content"> |
2 | <div class="title-page title-page-single"> | |
3 | Upload your video | |
4 | </div> | |
897ec54d | 5 | |
baeefe22 | 6 | <div *ngIf="!isUploadingVideo" class="upload-video-container"> |
27e1a06c C |
7 | <div class="upload-video"> |
8 | <div class="icon icon-upload"></div> | |
897ec54d | 9 | |
27e1a06c C |
10 | <div class="button-file"> |
11 | <span>Select the file to upload</span> | |
108af661 | 12 | <input #videofileInput type="file" name="videofile" id="videofile" [accept]="videoExtensions" (change)="fileChange()" /> |
897ec54d C |
13 | </div> |
14 | ||
15a7387d C |
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> | |
20 | </select> | |
21 | </div> | |
897ec54d C |
22 | </div> |
23 | ||
bcd9f81e | 24 | <div class="form-group"> |
15a7387d C |
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> | |
29 | </select> | |
30 | </div> | |
bcd9f81e | 31 | </div> |
27e1a06c | 32 | </div> |
baeefe22 | 33 | </div> |
bcd9f81e | 34 | |
e494f91e | 35 | <div *ngIf="isUploadingVideo" class="upload-progress-cancel"> |
8c4890cb DG |
36 | <p-progressBar |
37 | [value]="videoUploadPercents" | |
cadb46d8 | 38 | [ngClass]="{ processing: videoUploadPercents === 100 && videoUploaded === false }" |
8c4890cb | 39 | ></p-progressBar> |
e494f91e | 40 | <input *ngIf="videoUploaded === false" type="button" value="Cancel" (click)="cancelUpload()" /> |
8c4890cb | 41 | </div> |
c182778e | 42 | |
e494f91e | 43 | <!-- Hidden because we want to load the component --> |
baeefe22 C |
44 | <form [hidden]="!isUploadingVideo" novalidate [formGroup]="form"> |
45 | <my-video-edit | |
108af661 C |
46 | [form]="form" [formErrors]="formErrors" |
47 | [validationMessages]="validationMessages" [videoPrivacies]="videoPrivacies" [userVideoChannels]="userVideoChannels" | |
baeefe22 C |
48 | ></my-video-edit> |
49 | ||
50 | <div class="submit-container"> | |
cadb46d8 C |
51 | <div *ngIf="videoUploaded === false" class="message-submit">Publish will be available when upload is finished</div> |
52 | ||
53 | <div class="submit-button" (click)="updateSecondStep()" [ngClass]="{ disabled: !form.valid || videoUploaded !== true }"> | |
baeefe22 | 54 | <span class="icon icon-validate"></span> |
cadb46d8 | 55 | <input type="button" value="Publish" /> |
897ec54d | 56 | </div> |
baeefe22 C |
57 | </div> |
58 | </form> | |
897ec54d | 59 | </div> |