]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/videos/+video-edit/video-add.component.html
Prevent commenting twice
[github/Chocobozzz/PeerTube.git] / client / src / app / videos / +video-edit / video-add.component.html
CommitLineData
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">
b1d40cff 12 <span i18n>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 16 <div class="form-group form-group-channel">
b1d40cff 17 <label i18n for="first-step-channel">Channel</label>
15a7387d
C
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">
b1d40cff 26 <label i18n for="first-step-privacy">Privacy</label>
15a7387d
C
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>
bbe0f064 30 <option [value]="SPECIAL_SCHEDULED_PRIVACY">Scheduled</option>
15a7387d
C
31 </select>
32 </div>
bcd9f81e 33 </div>
27e1a06c 34 </div>
baeefe22 35 </div>
bcd9f81e 36
e494f91e 37 <div *ngIf="isUploadingVideo" class="upload-progress-cancel">
8c4890cb
DG
38 <p-progressBar
39 [value]="videoUploadPercents"
cadb46d8 40 [ngClass]="{ processing: videoUploadPercents === 100 && videoUploaded === false }"
8c4890cb 41 ></p-progressBar>
e494f91e 42 <input *ngIf="videoUploaded === false" type="button" value="Cancel" (click)="cancelUpload()" />
8c4890cb 43 </div>
c182778e 44
e494f91e 45 <!-- Hidden because we want to load the component -->
baeefe22
C
46 <form [hidden]="!isUploadingVideo" novalidate [formGroup]="form">
47 <my-video-edit
108af661
C
48 [form]="form" [formErrors]="formErrors"
49 [validationMessages]="validationMessages" [videoPrivacies]="videoPrivacies" [userVideoChannels]="userVideoChannels"
baeefe22
C
50 ></my-video-edit>
51
52 <div class="submit-container">
b1d40cff 53 <div i18n *ngIf="videoUploaded === false" class="message-submit">Publish will be available when upload is finished</div>
cadb46d8 54
68e24d72
C
55 <div class="submit-button"
56 (click)="updateSecondStep()"
57 [ngClass]="{ disabled: !form.valid || isUpdatingVideo === true || videoUploaded !== true }"
58 >
baeefe22 59 <span class="icon icon-validate"></span>
b1d40cff 60 <input type="button" i18n-value value="Publish" />
897ec54d 61 </div>
baeefe22
C
62 </div>
63 </form>
897ec54d 64</div>