]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/videos/+video-edit/video-update.component.html
Add delete button to my videos
[github/Chocobozzz/PeerTube.git] / client / src / app / videos / +video-edit / video-update.component.html
CommitLineData
897ec54d
C
1<div class="row">
2 <div class="content-padding">
dc8bc31b 3
897ec54d 4 <h3>Update {{ video?.name }}</h3>
1cdb5c0f 5
897ec54d
C
6 <div *ngIf="error" class="alert alert-danger">{{ error }}</div>
7
8 <form novalidate [formGroup]="form">
9 <div class="form-group">
10 <label for="name">Name</label>
11 <input
12 type="text" class="form-control" id="name"
13 formControlName="name"
14 >
15 <div *ngIf="formErrors.name" class="alert alert-danger">
16 {{ formErrors.name }}
17 </div>
dc8bc31b 18 </div>
dc8bc31b 19
fd45e8f4
C
20 <div class="form-group">
21 <label for="privacy">Privacy</label>
22 <select class="form-control" id="privacy" formControlName="privacy">
23 <option></option>
24 <option *ngFor="let privacy of videoPrivacies" [value]="privacy.id">{{ privacy.label }}</option>
25 </select>
26
27 <div *ngIf="formErrors.privacy" class="alert alert-danger">
28 {{ formErrors.privacy }}
29 </div>
30 </div>
31
897ec54d 32 <div class="form-group">
897ec54d
C
33 <input
34 type="checkbox" id="nsfw"
35 formControlName="nsfw"
36 >
d6e32a2e 37 <label for="nsfw">This video contains mature or explicit content</label>
897ec54d 38 </div>
92fb909c 39
897ec54d
C
40 <div class="form-group">
41 <label for="category">Category</label>
42 <select class="form-control" id="category" formControlName="category">
43 <option></option>
44 <option *ngFor="let category of videoCategories" [value]="category.id">{{ category.label }}</option>
45 </select>
6e07c3de 46
897ec54d
C
47 <div *ngIf="formErrors.category" class="alert alert-danger">
48 {{ formErrors.category }}
49 </div>
6e07c3de 50 </div>
6e07c3de 51
897ec54d
C
52 <div class="form-group">
53 <label for="licence">Licence</label>
54 <select class="form-control" id="licence" formControlName="licence">
55 <option></option>
56 <option *ngFor="let licence of videoLicences" [value]="licence.id">{{ licence.label }}</option>
57 </select>
d07137b9 58
897ec54d
C
59 <div *ngIf="formErrors.licence" class="alert alert-danger">
60 {{ formErrors.licence }}
61 </div>
d07137b9 62 </div>
d07137b9 63
897ec54d
C
64 <div class="form-group">
65 <label for="language">Language</label>
66 <select class="form-control" id="language" formControlName="language">
67 <option></option>
68 <option *ngFor="let language of videoLanguages" [value]="language.id">{{ language.label }}</option>
69 </select>
db216afd 70
897ec54d
C
71 <div *ngIf="formErrors.language" class="alert alert-danger">
72 {{ formErrors.language }}
73 </div>
db216afd 74 </div>
db216afd 75
897ec54d 76 <div class="form-group">
2de96f4d 77 <label class="label-tags">Tags</label> <span class="little-information">(press enter to add the tag)</span>
897ec54d
C
78 <tag-input
79 [ngModel]="tags" [validators]="tagValidators" [errorMessages]="tagValidatorsMessages"
a265f7f3 80 formControlName="tags" maxItems="5" modelAsStrings="true"
897ec54d
C
81 ></tag-input>
82 </div>
bf57d5ee 83
897ec54d
C
84 <div class="form-group">
85 <label for="description">Description</label>
2de96f4d
C
86 <my-video-description formControlName="description"></my-video-description>
87
897ec54d
C
88 <div *ngIf="formErrors.description" class="alert alert-danger">
89 {{ formErrors.description }}
90 </div>
dc8bc31b 91 </div>
dc8bc31b 92
897ec54d
C
93 <div class="form-group">
94 <input
95 type="button" value="Update" class="btn btn-default form-control"
96 (click)="update()"
97 >
98 </div>
99 </form>
e822fdae 100 </div>
897ec54d 101</div>