1
0
Fork 0
peertube/client/src/app/videos/+video-edit/video-update.component.html

102 lines
3.1 KiB
HTML
Raw Normal View History

2017-04-21 16:26:09 +00:00
<div class="row">
<div class="content-padding">
2016-03-14 12:50:19 +00:00
2017-04-21 16:26:09 +00:00
<h3>Update {{ video?.name }}</h3>
2016-06-04 18:37:38 +00:00
2017-04-21 16:26:09 +00:00
<div *ngIf="error" class="alert alert-danger">{{ error }}</div>
<form novalidate [formGroup]="form">
<div class="form-group">
<label for="name">Name</label>
<input
type="text" class="form-control" id="name"
formControlName="name"
>
<div *ngIf="formErrors.name" class="alert alert-danger">
{{ formErrors.name }}
</div>
2016-03-14 12:50:19 +00:00
</div>
2017-10-31 10:52:52 +00:00
<div class="form-group">
<label for="privacy">Privacy</label>
<select class="form-control" id="privacy" formControlName="privacy">
<option></option>
<option *ngFor="let privacy of videoPrivacies" [value]="privacy.id">{{ privacy.label }}</option>
</select>
<div *ngIf="formErrors.privacy" class="alert alert-danger">
{{ formErrors.privacy }}
</div>
</div>
2017-04-21 16:26:09 +00:00
<div class="form-group">
<input
type="checkbox" id="nsfw"
formControlName="nsfw"
>
<label for="nsfw">This video contains mature or explicit content</label>
2017-04-21 16:26:09 +00:00
</div>
2017-04-04 19:37:03 +00:00
2017-04-21 16:26:09 +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>
2017-03-22 20:15:55 +00:00
2017-04-21 16:26:09 +00:00
<div *ngIf="formErrors.category" class="alert alert-danger">
{{ formErrors.category }}
</div>
2017-03-22 20:15:55 +00:00
</div>
2017-04-21 16:26:09 +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>
2017-03-27 19:11:37 +00:00
2017-04-21 16:26:09 +00:00
<div *ngIf="formErrors.licence" class="alert alert-danger">
{{ formErrors.licence }}
</div>
2017-03-27 19:11:37 +00:00
</div>
2017-04-21 16:26:09 +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>
2017-04-07 12:57:05 +00:00
2017-04-21 16:26:09 +00:00
<div *ngIf="formErrors.language" class="alert alert-danger">
{{ formErrors.language }}
</div>
2017-04-07 12:57:05 +00:00
</div>
2017-04-21 16:26:09 +00:00
<div class="form-group">
<label class="label-tags">Tags</label> <span class="little-information">(press enter to add the tag)</span>
2017-04-21 16:26:09 +00:00
<tag-input
[ngModel]="tags" [validators]="tagValidators" [errorMessages]="tagValidatorsMessages"
formControlName="tags" maxItems="5" modelAsStrings="true"
2017-04-21 16:26:09 +00:00
></tag-input>
</div>
2017-04-21 16:26:09 +00:00
<div class="form-group">
<label for="description">Description</label>
<my-video-description formControlName="description"></my-video-description>
2017-04-21 16:26:09 +00:00
<div *ngIf="formErrors.description" class="alert alert-danger">
{{ formErrors.description }}
</div>
2016-03-14 12:50:19 +00:00
</div>
2017-04-21 16:26:09 +00:00
<div class="form-group">
<input
type="button" value="Update" class="btn btn-default form-control"
(click)="update()"
>
</div>
</form>
</div>
2017-04-21 16:26:09 +00:00
</div>