-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcycles.component.html
44 lines (40 loc) · 1.84 KB
/
cycles.component.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<seed-page [config]="{ title: 'Cycles', action: createCycle, actionIcon: 'fa-solid:plus', actionText: 'Create Cycle' }" title="Cycles">
<!-- Cycles Table -->
<seed-page-inventory-table-container>
<table class="mat-elevation-z8 w-full bg-transparent" mat-table matSort [dataSource]="cyclesDataSource" [trackBy]="trackByFn">
<ng-container matColumnDef="id">
<th mat-header-cell *matHeaderCellDef>ID</th>
<td mat-cell *matCellDef="let cycle">{{ cycle.id }}</td>
</ng-container>
<ng-container matColumnDef="name">
<th mat-header-cell *matHeaderCellDef>Name</th>
<td mat-cell *matCellDef="let cycle">{{ cycle.name }}</td>
</ng-container>
<ng-container matColumnDef="start">
<th mat-header-cell *matHeaderCellDef>Start Date</th>
<td mat-cell *matCellDef="let cycle">{{ cycle.start }}</td>
</ng-container>
<ng-container matColumnDef="end">
<th mat-header-cell *matHeaderCellDef>End Date</th>
<td mat-cell *matCellDef="let cycle">{{ cycle.end }}</td>
</ng-container>
<ng-container matColumnDef="actions">
<th mat-header-cell *matHeaderCellDef class="select-none">Actions</th>
<td mat-cell *matCellDef="let cycle">
<a mat-stroked-button (click)="editCycle(cycle)" class="mr-2">
<mat-icon class="icon-size-4" svgIcon="fa-solid:pencil"></mat-icon>
</a>
<a mat-stroked-button color="warn" (click)="deleteCycle(cycle)">
<mat-icon class="icon-size-4" svgIcon="fa-solid:x"></mat-icon>
</a>
</td>
</ng-container>
<thead>
<tr mat-header-row *matHeaderRowDef="cyclesColumns"></tr>
</thead>
<tbody>
<tr mat-row *matRowDef="let row; columns: cyclesColumns"></tr>
</tbody>
</table>
</seed-page-inventory-table-container>
</seed-page>