fix document detail date and tag editing

This commit is contained in:
Jonas Winkler
2020-10-27 17:34:27 +01:00
parent 9089ed69c0
commit 9c996e69bb
2 changed files with 22 additions and 23 deletions

View File

@@ -83,21 +83,9 @@
<label for="exampleFormControlTextarea1">Tags</label>
<div class="input-group">
<div class="form-control">
<span *ngFor="let tag of documentForm.value.tags">
<app-tag [tag]="tag" [clickable]="true" (click)="removeTag(tag)"></app-tag>
&nbsp;
</span>
</div>
<div class="input-group-append" ngbDropdown>
<button class="btn btn-outline-secondary" type="button" ngbDropdownToggle></button>
<div ngbDropdownMenu aria-labelledby="dropdownBasic1">
<button type="button" *ngFor="let tag of tags" ngbDropdownItem (click)="addTag(tag)">
<app-tag [tag]="tag"></app-tag>
</button>
</div>
</div>
<select multiple class="form-control" id="tags" formControlName="tags_id">
<option *ngFor="let t of tags" [ngValue]="t.id">{{t.name}}</option>
</select>
<div class="input-group-append">
<button class="btn btn-outline-secondary" type="button" (click)="createTag()">