created delete and create function

This commit is contained in:
Michael
2020-06-30 16:13:57 +02:00
parent 42c3ffdda7
commit e99e0aeb69
2 changed files with 95 additions and 90 deletions

View File

@@ -51,15 +51,15 @@
<div class="form-group">
<label for="Inhalt">Status</label>
<select class="form-control custom-select mr-sm-2" id="prio" required name="prio" [(ngModel)]="task.statusid">
<option *ngFor="let status of allStatus" [value]="status.title">{{
<option *ngFor="let status of allStatus" [value]="status.id">{{
status.title
}}</option>
</select>
</div>
<div class="dropdown-divider"></div>
<div class="form-group">
<a class="dropdown-item" href="#">Neuer Status</a>
<a class="dropdown-item" href="#">Status löschen</a>
<a class="dropdown-item" href="#" (click)="createTaskStatus()">Neuer Status</a>
<a class="dropdown-item" href="#" (click)="deleteStatus()">Status löschen</a>
<input type="text" class="form-control"/>
</div>
</div>