1 <div [formGroup]=
"form">
2 <div class=
"form-group">
3 <label for=
"name">Name
</label>
5 type=
"text" class=
"form-control" id=
"name"
8 <div *
ngIf=
"formErrors.name" class=
"alert alert-danger">
13 <div class=
"form-group">
14 <label for=
"privacy">Privacy
</label>
15 <select class=
"form-control" id=
"privacy" formControlName=
"privacy">
17 <option *
ngFor=
"let privacy of videoPrivacies" [value]=
"privacy.id">{{ privacy.label }}
</option>
20 <div *
ngIf=
"formErrors.privacy" class=
"alert alert-danger">
21 {{ formErrors.privacy }}
25 <div class=
"form-group">
27 type=
"checkbox" id=
"nsfw"
28 formControlName=
"nsfw"
30 <label for=
"nsfw">This video contains mature or explicit content
</label>
33 <div class=
"form-group">
34 <label for=
"category">Category
</label>
35 <select class=
"form-control" id=
"category" formControlName=
"category">
37 <option *
ngFor=
"let category of videoCategories" [value]=
"category.id">{{ category.label }}
</option>
40 <div *
ngIf=
"formErrors.category" class=
"alert alert-danger">
41 {{ formErrors.category }}
45 <div class=
"form-group">
46 <label for=
"licence">Licence
</label>
47 <select class=
"form-control" id=
"licence" formControlName=
"licence">
49 <option *
ngFor=
"let licence of videoLicences" [value]=
"licence.id">{{ licence.label }}
</option>
52 <div *
ngIf=
"formErrors.licence" class=
"alert alert-danger">
53 {{ formErrors.licence }}
57 <div class=
"form-group">
58 <label for=
"language">Language
</label>
59 <select class=
"form-control" id=
"language" formControlName=
"language">
61 <option *
ngFor=
"let language of videoLanguages" [value]=
"language.id">{{ language.label }}
</option>
64 <div *
ngIf=
"formErrors.language" class=
"alert alert-danger">
65 {{ formErrors.language }}
69 <div class=
"form-group">
70 <label class=
"label-tags">Tags
</label> <span class=
"little-information">(press enter to add the tag)
</span>
72 [ngModel]=
"tags" [validators]=
"tagValidators" [errorMessages]=
"tagValidatorsMessages"
73 formControlName=
"tags" maxItems=
"5" modelAsStrings=
"true"
77 <div class=
"form-group">
78 <label for=
"description">Description
</label>
79 <my-video-description formControlName=
"description"></my-video-description>
81 <div *
ngIf=
"formErrors.description" class=
"alert alert-danger">
82 {{ formErrors.description }}