Added new collumns to task and userstory table (no logic yet)

This commit is contained in:
2020-06-29 15:29:14 +02:00
parent eefa6de678
commit 781165e974
4 changed files with 79 additions and 0 deletions

View File

@@ -40,6 +40,13 @@
<span *ngIf="sortDescending === false"></span>
</span>
</th>
<th (click)="sortByStatus()" class="sortable">
<span>Status</span>
<span *ngIf="sortBy === 'status'" class="pl-3">
<span *ngIf="sortDescending"></span>
<span *ngIf="sortDescending === false"></span>
</span>
</th>
<th (click)="sortByPrio()" class="sortable">
<span>Priorität</span>
<label class="pl-3" (click)="$event.stopPropagation()">
@@ -53,6 +60,20 @@
<span *ngIf="sortDescending === false"></span>
</span>
</th>
<th (click)="sortByAssigned()" class="sortable">
<span>Assigned To</span>
<span *ngIf="sortBy === 'assignedto'" class="pl-3">
<span *ngIf="sortDescending"></span>
<span *ngIf="sortDescending === false"></span>
</span>
</th>
<th (click)="sortByCategory()" class="sortable">
<span>Category</span>
<span *ngIf="sortBy === 'category'" class="pl-3">
<span *ngIf="sortDescending"></span>
<span *ngIf="sortDescending === false"></span>
</span>
</th>
<th></th>
</tr>
</thead>
@@ -66,7 +87,22 @@
US #{{task.userstoryid}}
</a>
</td>
<td>
<a [routerLink]="['/status', {id: task.statusid}]">
Status: {{task.statusid}}
</a>
</td>
<td>{{task.priority}}</td>
<td>
<a [routerLink]="['/users', {id: task.assignedtoid}]">
Status: {{task.assignedtoid}}
</a>
</td>
<td>
<a [routerLink]="['/categories', {id: task.categoryid}]">
Status: {{task.categoryid}}
</a>
</td>
<td>
<button class="btn btn-secondary m-2" (click)="openTaskForm(task)">Bearbeiten</button>
<button class="btn btn-secondary m-2" (click)="deleteTask(task)">Löschen</button>