]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/videos/+video-edit/video-add.component.html
Disable job scheduler SQL queries logging
[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">
3 Upload your video
4 </div>
897ec54d 5
27e1a06c 6 <div *ngIf="error" class="alert alert-danger">{{ error }}</div>
897ec54d 7
baeefe22 8 <div *ngIf="!isUploadingVideo" class="upload-video-container">
27e1a06c
C
9 <div class="upload-video">
10 <div class="icon icon-upload"></div>
897ec54d 11
27e1a06c
C
12 <div class="button-file">
13 <span>Select the file to upload</span>
baeefe22 14 <input #videofileInput type="file" name="videofile" id="videofile" (change)="fileChange()" />
897ec54d
C
15 </div>
16
15a7387d
C
17 <div class="form-group form-group-channel">
18 <label for="first-step-channel">Channel</label>
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">
15a7387d
C
27 <label for="first-step-privacy">Privacy</label>
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>
31 </select>
32 </div>
bcd9f81e 33 </div>
27e1a06c 34 </div>
baeefe22 35 </div>
bcd9f81e 36
cadb46d8
C
37 <p-progressBar
38 *ngIf="isUploadingVideo" [value]="videoUploadPercents"
39 [ngClass]="{ processing: videoUploadPercents === 100 && videoUploaded === false }"
40 ></p-progressBar>
c182778e 41
baeefe22
C
42 <!-- Hidden because we need to load the component -->
43 <form [hidden]="!isUploadingVideo" novalidate [formGroup]="form">
44 <my-video-edit
45 [form]="form" [formErrors]="formErrors"
15a7387d 46 [validationMessages]="validationMessages" [videoPrivacies]="videoPrivacies" [userVideoChannels]="userVideoChannels"
baeefe22
C
47 ></my-video-edit>
48
cadb46d8 49
baeefe22 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>