1 <div class=
"video-edit row" [formGroup]=
"form">
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">
12 <div class=
"form-group">
13 <label class=
"label-tags">Tags
</label> <span class=
"little-information">(press enter to add the tag)
</span>
15 [ngModel]=
"tags" [validators]=
"tagValidators" [errorMessages]=
"tagValidatorsMessages"
16 formControlName=
"tags" maxItems=
"5" modelAsStrings=
"true"
20 <div class=
"form-group">
21 <label for=
"description">Description
</label>
22 <my-video-description formControlName=
"description"></my-video-description>
24 <div *
ngIf=
"formErrors.description" class=
"form-error">
25 {{ formErrors.description }}
30 <div class=
"col-md-4">
31 <div class=
"form-group">
32 <label for=
"category">Category
</label>
33 <select id=
"category" formControlName=
"category">
35 <option *
ngFor=
"let category of videoCategories" [value]=
"category.id">{{ category.label }}
</option>
38 <div *
ngIf=
"formErrors.category" class=
"form-error">
39 {{ formErrors.category }}
43 <div class=
"form-group">
44 <label for=
"licence">Licence
</label>
45 <select id=
"licence" formControlName=
"licence">
47 <option *
ngFor=
"let licence of videoLicences" [value]=
"licence.id">{{ licence.label }}
</option>
50 <div *
ngIf=
"formErrors.licence" class=
"form-error">
51 {{ formErrors.licence }}
55 <div class=
"form-group">
56 <label for=
"language">Language
</label>
57 <select id=
"language" formControlName=
"language">
59 <option *
ngFor=
"let language of videoLanguages" [value]=
"language.id">{{ language.label }}
</option>
62 <div *
ngIf=
"formErrors.language" class=
"form-error">
63 {{ formErrors.language }}
67 <div class=
"form-group">
68 <label for=
"privacy">Privacy
</label>
69 <select id=
"privacy" formControlName=
"privacy">
72 <option *
ngFor=
"let privacy of videoPrivacies" [value]=
"privacy.id">{{ privacy.label }}
</option>
75 <div *
ngIf=
"formErrors.privacy" class=
"form-error">
76 {{ formErrors.privacy }}
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>