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