diff --git a/src/app/employee/delete/delete.component.html b/src/app/employee/delete/delete.component.html index f15bdb8..bf2fdb5 100644 --- a/src/app/employee/delete/delete.component.html +++ b/src/app/employee/delete/delete.component.html @@ -1,6 +1,6 @@

Delete {{employee.firstName}} {{employee.lastName}}

Are you sure you want to delete {{employee.firstName}} {{employee.lastName}}? This cant be undone. - - + + diff --git a/src/app/employee/table/table.component.html b/src/app/employee/table/table.component.html index ae30d76..635216f 100644 --- a/src/app/employee/table/table.component.html +++ b/src/app/employee/table/table.component.html @@ -1,4 +1,4 @@ -
+
@defer { @if (employees$ | async; as employees) {
@@ -38,7 +38,7 @@ edit diff --git a/src/app/employee/table/table.component.ts b/src/app/employee/table/table.component.ts index 019b783..c2cca03 100644 --- a/src/app/employee/table/table.component.ts +++ b/src/app/employee/table/table.component.ts @@ -35,9 +35,6 @@ import EmployeeApiService from "../../services/employee-api.service"; MatSortModule ], templateUrl: './table.component.html', - host: { - class: 'block w-full p-6' - }, styleUrl: './table.component.css' }) export class TableComponent implements OnInit{ diff --git a/src/app/qualification/table/table.component.html b/src/app/qualification/table/table.component.html index 7e9d758..092ded3 100644 --- a/src/app/qualification/table/table.component.html +++ b/src/app/qualification/table/table.component.html @@ -1,42 +1,86 @@ -
-

Qualifications

- -
- -@if (qualifications$ | async; as qualifications) { - @if (qualifications) { - - - - - - - - - - - - - - - + - - -
ID{{ qualification.id }}Skill{{ qualification.skill }}Actions - - -
+ @if (qualifications) { +
+ + + + + + + + + + + + + + + + + + +
ID{{ qualification.id }}Skill{{ qualification.skill }}Actions + + +
+
+ } @else { + + + school +

No qualifications found

+
+
+ } +
+ } + } @placeholder { +
+
+
+
+
+
+
+
+
+ @for(i of [1,2,3]; track i) { +
+ } +
+
+
+
+ } @error { + + +
+ error_outline +
+

Error loading qualifications

+

Please try refreshing the page.

+
+
+
+
+ } @loading (minimum 500ms) { +
+ +
} -} +
diff --git a/src/app/qualification/table/table.component.ts b/src/app/qualification/table/table.component.ts index f188b85..4e53c2a 100644 --- a/src/app/qualification/table/table.component.ts +++ b/src/app/qualification/table/table.component.ts @@ -1,7 +1,7 @@ import {Component, inject, OnInit} from '@angular/core'; import {Observable} from "rxjs"; import {Qualification} from "../Qualification"; -import {AsyncPipe} from "@angular/common"; +import {AsyncPipe, NgFor} from "@angular/common"; import { MatCell, MatCellDef, MatColumnDef, @@ -17,11 +17,14 @@ import {CreateComponent} from "../create/create.component"; import {MatIcon} from "@angular/material/icon"; import {MatButton, MatIconButton} from "@angular/material/button"; import {EditComponent} from "../edit/edit.component"; +import {MatCard, MatCardContent} from "@angular/material/card"; +import {MatProgressSpinner} from "@angular/material/progress-spinner"; @Component({ selector: 'app-qualifications', imports: [ AsyncPipe, + NgFor, MatTable, MatHeaderCell, MatColumnDef, @@ -34,7 +37,10 @@ import {EditComponent} from "../edit/edit.component"; MatRowDef, MatIcon, MatIconButton, - MatButton + MatButton, + MatCard, + MatCardContent, + MatProgressSpinner ], templateUrl: './table.component.html', styleUrl: './table.component.css'