2017-04-12 20:00:17 +00:00
|
|
|
<h3>Update {{ video?.name }}</h3>
|
2016-03-14 12:50:19 +00:00
|
|
|
|
2016-06-04 18:37:38 +00:00
|
|
|
<div *ngIf="error" class="alert alert-danger">{{ error }}</div>
|
|
|
|
|
2016-10-17 19:14:13 +00:00
|
|
|
<form novalidate [formGroup]="form">
|
2016-03-14 12:50:19 +00:00
|
|
|
<div class="form-group">
|
2016-06-07 20:34:02 +00:00
|
|
|
<label for="name">Name</label>
|
2016-03-14 12:50:19 +00:00
|
|
|
<input
|
2016-09-09 20:16:51 +00:00
|
|
|
type="text" class="form-control" id="name"
|
|
|
|
formControlName="name"
|
2016-03-14 12:50:19 +00:00
|
|
|
>
|
2016-09-09 20:16:51 +00:00
|
|
|
<div *ngIf="formErrors.name" class="alert alert-danger">
|
|
|
|
{{ formErrors.name }}
|
2016-03-14 12:50:19 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2017-04-04 19:37:03 +00:00
|
|
|
<div class="form-group">
|
|
|
|
<label for="nsfw">NSFW</label>
|
|
|
|
<input
|
|
|
|
type="checkbox" id="nsfw"
|
|
|
|
formControlName="nsfw"
|
|
|
|
>
|
|
|
|
</div>
|
|
|
|
|
2017-03-22 20:15:55 +00:00
|
|
|
<div class="form-group">
|
|
|
|
<label for="category">Category</label>
|
|
|
|
<select class="form-control" id="category" formControlName="category">
|
|
|
|
<option></option>
|
|
|
|
<option *ngFor="let category of videoCategories" [value]="category.id">{{ category.label }}</option>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
<div *ngIf="formErrors.category" class="alert alert-danger">
|
|
|
|
{{ formErrors.category }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2017-03-27 19:11:37 +00:00
|
|
|
<div class="form-group">
|
|
|
|
<label for="licence">Licence</label>
|
|
|
|
<select class="form-control" id="licence" formControlName="licence">
|
|
|
|
<option></option>
|
|
|
|
<option *ngFor="let licence of videoLicences" [value]="licence.id">{{ licence.label }}</option>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
<div *ngIf="formErrors.licence" class="alert alert-danger">
|
|
|
|
{{ formErrors.licence }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2017-04-07 12:57:05 +00:00
|
|
|
<div class="form-group">
|
|
|
|
<label for="language">Language</label>
|
|
|
|
<select class="form-control" id="language" formControlName="language">
|
|
|
|
<option></option>
|
|
|
|
<option *ngFor="let language of videoLanguages" [value]="language.id">{{ language.label }}</option>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
<div *ngIf="formErrors.language" class="alert alert-danger">
|
|
|
|
{{ formErrors.language }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2016-03-16 19:59:56 +00:00
|
|
|
<div class="form-group">
|
2017-04-16 12:06:48 +00:00
|
|
|
<label for="tags" class="label-tags">Tags</label> <span class="little-information">(press enter to add the tag)</span>
|
|
|
|
<tag-input
|
|
|
|
[ngModel]="tags" [validators]="tagValidators" [errorMessages]="tagValidatorsMessages"
|
|
|
|
formControlName="tags" maxItems="3" modelAsStrings="true"
|
|
|
|
></tag-input>
|
2016-11-27 17:10:26 +00:00
|
|
|
</div>
|
|
|
|
|
2016-03-14 12:50:19 +00:00
|
|
|
<div class="form-group">
|
|
|
|
<label for="description">Description</label>
|
|
|
|
<textarea
|
2016-09-09 20:16:51 +00:00
|
|
|
id="description" class="form-control" placeholder="Description..."
|
|
|
|
formControlName="description"
|
2016-03-14 12:50:19 +00:00
|
|
|
>
|
|
|
|
</textarea>
|
2016-09-09 20:16:51 +00:00
|
|
|
<div *ngIf="formErrors.description" class="alert alert-danger">
|
|
|
|
{{ formErrors.description }}
|
2016-03-14 12:50:19 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2016-06-07 20:34:02 +00:00
|
|
|
<div class="form-group">
|
|
|
|
<input
|
2017-04-10 19:15:28 +00:00
|
|
|
type="button" value="Update" class="btn btn-default form-control"
|
|
|
|
(click)="update()"
|
2016-06-07 20:34:02 +00:00
|
|
|
>
|
|
|
|
</div>
|
2016-03-14 12:50:19 +00:00
|
|
|
</form>
|