]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame_incremental - client/src/app/videos/video-add/video-add.component.html
Videos likes/dislikes is implemented :)
[github/Chocobozzz/PeerTube.git] / client / src / app / videos / video-add / video-add.component.html
... / ...
CommitLineData
1<h3>Upload a video</h3>
2
3<div *ngIf="error" class="alert alert-danger">{{ error }}</div>
4
5<form novalidate [formGroup]="form">
6 <div class="form-group">
7 <label for="name">Name</label>
8 <input
9 type="text" class="form-control" id="name"
10 formControlName="name"
11 >
12 <div *ngIf="formErrors.name" class="alert alert-danger">
13 {{ formErrors.name }}
14 </div>
15 </div>
16
17 <div class="form-group">
18 <label for="tags">Tags</label> <span class="little-information">(press enter to add the tag)</span>
19 <input
20 type="text" class="form-control" id="currentTag"
21 formControlName="currentTag" (keyup)="onTagKeyPress($event)"
22 >
23 <div *ngIf="formErrors.currentTag" class="alert alert-danger">
24 {{ formErrors.currentTag }}
25 </div>
26 </div>
27
28 <div class="tags">
29 <div class="label label-primary tag" *ngFor="let tag of tags">
30 {{ tag }}
31 <span class="remove" (click)="removeTag(tag)">x</span>
32 </div>
33 </div>
34
35 <div *ngIf="tagsError" class="alert alert-danger">
36 {{ tagsError }}
37 </div>
38
39 <div class="form-group">
40 <label for="videofile">File</label>
41 <div class="btn btn-default btn-file" [ngClass]="{ 'disabled': filename !== null }" >
42 <span>Select the video...</span>
43 <input
44 type="file" name="videofile" id="videofile"
45 ng2FileSelect [uploader]="uploader" [disabled]="filename !== null"
46 (change)="fileChanged()"
47 >
48 </div>
49 </div>
50
51 <div class="file-to-upload">
52 <div class="file" *ngIf="uploader.queue.length > 0">
53 <span class="filename">{{ filename }}</span>
54 <span class="glyphicon glyphicon-remove" (click)="removeFile()"></span>
55 </div>
56 </div>
57
58 <div *ngIf="fileError" class="alert alert-danger">
59 {{ fileError }}
60 </div>
61
62 <div class="form-group">
63 <label for="description">Description</label>
64 <textarea
65 id="description" class="form-control" placeholder="Description..."
66 formControlName="description"
67 >
68 </textarea>
69 <div *ngIf="formErrors.description" class="alert alert-danger">
70 {{ formErrors.description }}
71 </div>
72 </div>
73
74 <div class="progress">
75 <progressbar [value]="uploader.progress" max="100"></progressbar>
76 </div>
77
78 <div class="form-group">
79 <input
80 type="button" value="Upload" class="btn btn-default form-control"
81 (click)="upload()"
82 >
83 </div>
84</form>