]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/videos/+video-edit/video-add.component.html
Issue #168: youtube-like marking of comments (#297)
[github/Chocobozzz/PeerTube.git] / client / src / app / videos / +video-edit / video-add.component.html
1 <div class="margin-content">
2 <div class="title-page title-page-single">
3 Upload your video
4 </div>
5
6 <div *ngIf="!isUploadingVideo" class="upload-video-container">
7 <div class="upload-video">
8 <div class="icon icon-upload"></div>
9
10 <div class="button-file">
11 <span>Select the file to upload</span>
12 <input #videofileInput type="file" name="videofile" id="videofile" [accept]="videoExtensions" (change)="fileChange()" />
13 </div>
14
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>
22 </div>
23
24 <div class="form-group">
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>
31 </div>
32 </div>
33 </div>
34
35 <div *ngIf="isUploadingVideo" class="upload-progress-cancel">
36 <p-progressBar
37 [value]="videoUploadPercents"
38 [ngClass]="{ processing: videoUploadPercents === 100 && videoUploaded === false }"
39 ></p-progressBar>
40 <input *ngIf="videoUploaded === false" type="button" value="Cancel" (click)="cancelUpload()" />
41 </div>
42
43 <!-- Hidden because we want to load the component -->
44 <form [hidden]="!isUploadingVideo" novalidate [formGroup]="form">
45 <my-video-edit
46 [form]="form" [formErrors]="formErrors"
47 [validationMessages]="validationMessages" [videoPrivacies]="videoPrivacies" [userVideoChannels]="userVideoChannels"
48 ></my-video-edit>
49
50 <div class="submit-container">
51 <div *ngIf="videoUploaded === false" class="message-submit">Publish will be available when upload is finished</div>
52
53 <div class="submit-button"
54 (click)="updateSecondStep()"
55 [ngClass]="{ disabled: !form.valid || isUpdatingVideo === true || videoUploaded !== true }"
56 >
57 <span class="icon icon-validate"></span>
58 <input type="button" value="Publish" />
59 </div>
60 </div>
61 </form>
62 </div>