]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/videos/+video-edit/video-add.component.html
First upload step is ok
[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
fd45e8f4 17 <div class="form-group">
27e1a06c 18 <select [(ngModel)]="firstStepPrivacy">
fd45e8f4
C
19 <option *ngFor="let privacy of videoPrivacies" [value]="privacy.id">{{ privacy.label }}</option>
20 </select>
897ec54d
C
21 </div>
22
bcd9f81e 23 <div class="form-group">
27e1a06c 24 <select [(ngModel)]="firstStepChannel">
bcd9f81e
C
25 <option *ngFor="let channel of userVideoChannels" [value]="channel.id">{{ channel.label }}</option>
26 </select>
bcd9f81e 27 </div>
27e1a06c 28 </div>
baeefe22 29 </div>
bcd9f81e 30
baeefe22
C
31 <!-- Hidden because we need to load the component -->
32 <form [hidden]="!isUploadingVideo" novalidate [formGroup]="form">
33 <my-video-edit
34 [form]="form" [formErrors]="formErrors"
35 [validationMessages]="validationMessages" [videoPrivacies]="videoPrivacies"
36 ></my-video-edit>
37
38 <div class="submit-container">
39 <div class="submit-button" [ngClass]="{ disabled: !form.valid }">
40 <span class="icon icon-validate"></span>
41 <input type="button" value="Publish" (click)="upload()" />
897ec54d 42 </div>
baeefe22
C
43 </div>
44 </form>
897ec54d 45</div>