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