diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-12-11 11:06:32 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-12-11 11:06:32 +0100 |
commit | fada8d75550dc7365f7e18ee1569b9406251d660 (patch) | |
tree | db9dc01c18693824f83fce5020f4c1f3ae7c0865 /client/src/app/videos/+video-edit/shared/video-edit.component.html | |
parent | 492fd28167f770d79a430fc57451b5a9e075d8e7 (diff) | |
parent | c2830fa8f84f61462098bf36add824f89436dfa9 (diff) | |
download | PeerTube-fada8d75550dc7365f7e18ee1569b9406251d660.tar.gz PeerTube-fada8d75550dc7365f7e18ee1569b9406251d660.tar.zst PeerTube-fada8d75550dc7365f7e18ee1569b9406251d660.zip |
Merge branch 'feature/design' into develop
Diffstat (limited to 'client/src/app/videos/+video-edit/shared/video-edit.component.html')
-rw-r--r-- | client/src/app/videos/+video-edit/shared/video-edit.component.html | 86 |
1 files changed, 86 insertions, 0 deletions
diff --git a/client/src/app/videos/+video-edit/shared/video-edit.component.html b/client/src/app/videos/+video-edit/shared/video-edit.component.html new file mode 100644 index 000000000..8c071ce12 --- /dev/null +++ b/client/src/app/videos/+video-edit/shared/video-edit.component.html | |||
@@ -0,0 +1,86 @@ | |||
1 | <div class="video-edit row" [formGroup]="form"> | ||
2 | |||
3 | <div class="col-md-8"> | ||
4 | <div class="form-group"> | ||
5 | <label for="name">Title</label> | ||
6 | <input type="text" id="name" formControlName="name" /> | ||
7 | <div *ngIf="formErrors.name" class="form-error"> | ||
8 | {{ formErrors.name }} | ||
9 | </div> | ||
10 | </div> | ||
11 | |||
12 | <div class="form-group"> | ||
13 | <label class="label-tags">Tags</label> <span class="little-information">(press enter to add the tag)</span> | ||
14 | <tag-input | ||
15 | [ngModel]="tags" [validators]="tagValidators" [errorMessages]="tagValidatorsMessages" | ||
16 | formControlName="tags" maxItems="5" modelAsStrings="true" | ||
17 | ></tag-input> | ||
18 | </div> | ||
19 | |||
20 | <div class="form-group"> | ||
21 | <label for="description">Description</label> | ||
22 | <my-video-description formControlName="description"></my-video-description> | ||
23 | |||
24 | <div *ngIf="formErrors.description" class="form-error"> | ||
25 | {{ formErrors.description }} | ||
26 | </div> | ||
27 | </div> | ||
28 | </div> | ||
29 | |||
30 | <div class="col-md-4"> | ||
31 | <div class="form-group"> | ||
32 | <label for="category">Category</label> | ||
33 | <select id="category" formControlName="category"> | ||
34 | <option></option> | ||
35 | <option *ngFor="let category of videoCategories" [value]="category.id">{{ category.label }}</option> | ||
36 | </select> | ||
37 | |||
38 | <div *ngIf="formErrors.category" class="form-error"> | ||
39 | {{ formErrors.category }} | ||
40 | </div> | ||
41 | </div> | ||
42 | |||
43 | <div class="form-group"> | ||
44 | <label for="licence">Licence</label> | ||
45 | <select id="licence" formControlName="licence"> | ||
46 | <option></option> | ||
47 | <option *ngFor="let licence of videoLicences" [value]="licence.id">{{ licence.label }}</option> | ||
48 | </select> | ||
49 | |||
50 | <div *ngIf="formErrors.licence" class="form-error"> | ||
51 | {{ formErrors.licence }} | ||
52 | </div> | ||
53 | </div> | ||
54 | |||
55 | <div class="form-group"> | ||
56 | <label for="language">Language</label> | ||
57 | <select id="language" formControlName="language"> | ||
58 | <option></option> | ||
59 | <option *ngFor="let language of videoLanguages" [value]="language.id">{{ language.label }}</option> | ||
60 | </select> | ||
61 | |||
62 | <div *ngIf="formErrors.language" class="form-error"> | ||
63 | {{ formErrors.language }} | ||
64 | </div> | ||
65 | </div> | ||
66 | |||
67 | <div class="form-group"> | ||
68 | <label for="privacy">Privacy</label> | ||
69 | <select id="privacy" formControlName="privacy"> | ||
70 | |||
71 | <option></option> | ||
72 | <option *ngFor="let privacy of videoPrivacies" [value]="privacy.id">{{ privacy.label }}</option> | ||
73 | </select> | ||
74 | |||
75 | <div *ngIf="formErrors.privacy" class="form-error"> | ||
76 | {{ formErrors.privacy }} | ||
77 | </div> | ||
78 | </div> | ||
79 | |||
80 | <div class="form-group form-group-checkbox"> | ||
81 | <input type="checkbox" id="nsfw" formControlName="nsfw" /> | ||
82 | <label for="nsfw">This video contains mature or explicit content</label> | ||
83 | </div> | ||
84 | |||
85 | </div> | ||
86 | </div> | ||