aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/videos/video-edit/video-add.component.html
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-04-16 14:06:48 +0200
committerChocobozzz <florian.bigard@gmail.com>2017-04-16 14:06:48 +0200
commit3758da9489b636997a3a4fad7fc1a6081737bbe0 (patch)
tree7c335e1466887af1437c4701c859a72e58c93678 /client/src/app/videos/video-edit/video-add.component.html
parentad42bea3a55ca7937f082cc641764de70ce34bd1 (diff)
downloadPeerTube-3758da9489b636997a3a4fad7fc1a6081737bbe0.tar.gz
PeerTube-3758da9489b636997a3a4fad7fc1a6081737bbe0.tar.zst
PeerTube-3758da9489b636997a3a4fad7fc1a6081737bbe0.zip
Client: use ng2-tag-input for forms with video tags
Diffstat (limited to 'client/src/app/videos/video-edit/video-add.component.html')
-rw-r--r--client/src/app/videos/video-edit/video-add.component.html24
1 files changed, 5 insertions, 19 deletions
diff --git a/client/src/app/videos/video-edit/video-add.component.html b/client/src/app/videos/video-edit/video-add.component.html
index 104747a8c..04f4f85b0 100644
--- a/client/src/app/videos/video-edit/video-add.component.html
+++ b/client/src/app/videos/video-edit/video-add.component.html
@@ -59,25 +59,11 @@
59 </div> 59 </div>
60 60
61 <div class="form-group"> 61 <div class="form-group">
62 <label for="tags">Tags</label> <span class="little-information">(press enter to add the tag)</span> 62 <label for="tags" class="label-tags">Tags</label> <span class="little-information">(press enter to add the tag)</span>
63 <input 63 <tag-input
64 type="text" class="form-control" id="currentTag" 64 [ngModel]="tags" [validators]="tagValidators" [errorMessages]="tagValidatorsMessages"
65 formControlName="currentTag" (keyup)="onTagKeyPress($event)" 65 formControlName="tags" maxItems="3" modelAsStrings="true"
66 > 66 ></tag-input>
67 <div *ngIf="formErrors.currentTag" class="alert alert-danger">
68 {{ formErrors.currentTag }}
69 </div>
70 </div>
71
72 <div class="tags">
73 <div class="label label-primary tag" *ngFor="let tag of tags">
74 {{ tag }}
75 <span class="remove" (click)="removeTag(tag)">x</span>
76 </div>
77 </div>
78
79 <div *ngIf="tagsError" class="alert alert-danger">
80 {{ tagsError }}
81 </div> 67 </div>
82 68
83 <div class="form-group"> 69 <div class="form-group">