Implement qualification details (#26)

Co-authored-by: Phan Huy Tran <p.tran@neusta.de>
Reviewed-on: #26
Reviewed-by: Constantin Simonis <constantin@simonis.lol>
This commit is contained in:
Get in my car i have candy
2025-01-09 11:48:39 +00:00
parent 176074fbdc
commit a2bc06aee0
9 changed files with 154 additions and 128 deletions

View File

@ -0,0 +1,21 @@
<h2 mat-dialog-title class="text-xl font-semibold mb-4">
Employees with {{ qualification.skill }}
</h2>
<mat-dialog-content>
@if (employees$ | async; as employees) {
@if (employees.length === 0) {
<p class="text-gray-500 italic">No employees found with this qualification.</p>
} @else {
@for (employee of employees; track employee.id) {
<a class="flex items-center p-3 bg-gray-50 rounded-lg hover:bg-gray-100 transition-colors">
<span class="font-medium">{{ employee.firstName }} {{ employee.lastName }}</span>
</a>
}
}
}
</mat-dialog-content>
<mat-dialog-actions align="end" class="mt-4">
<button mat-button (click)="closeModal()">Close</button>
</mat-dialog-actions>