From 3980408403218d7c44e0def6a52d6ee49ca6258f Mon Sep 17 00:00:00 2001 From: Constantin Simonis Date: Wed, 15 Jan 2025 11:00:42 +0000 Subject: [PATCH] add errors to edit employee form (#38) Reviewed-on: http://git.simonis.lol/angular/ems-frontend/pulls/38 Reviewed-by: Hop In, I Have Puppies AND WiFi Co-authored-by: Constantin Simonis Co-committed-by: Constantin Simonis --- src/app/employee/edit/edit.component.html | 13 +++++-- src/app/employee/edit/edit.component.ts | 45 ++++++++++++++++++++--- 2 files changed, 50 insertions(+), 8 deletions(-) diff --git a/src/app/employee/edit/edit.component.html b/src/app/employee/edit/edit.component.html index 6e13586..3226dad 100644 --- a/src/app/employee/edit/edit.component.html +++ b/src/app/employee/edit/edit.component.html @@ -7,12 +7,14 @@ First Name Enter the first name + {{errors['firstName']}} Last Name Enter the last name + {{errors['lastName']}} @@ -20,6 +22,7 @@ Street Enter the street address + {{errors['street']}}
@@ -27,12 +30,14 @@ City Enter the city + {{errors['city']}} Postcode Enter postcode + {{errors['postcode']}}
@@ -40,6 +45,7 @@ Phone Enter phone number + {{errors['phone']}} @@ -50,16 +56,17 @@ Select qualifications + {{errors['qualifications']}} - -