From 82a032affd6aa348079b1f8ccc5ea94452793907 Mon Sep 17 00:00:00 2001
From: Mazdak Gibran <141390141+mazdakgibran@users.noreply.github.com>
Date: Thu, 8 Jan 2026 17:50:22 +0500
Subject: [PATCH 1/4] adding fields to user setup
adding fields to user setup and error handling
---
.../notifications.component.html | 2 +-
.../notifications/notifications.component.ts | 3 +-
.../setup-user/setup-user.component.html | 43 ++++++++++++++++++-
.../setup-user/setup-user.component.ts | 11 ++++-
src/assets/css/bootstrap.min.css | 3 +-
src/assets/i18n/Arabic.json | 5 ++-
src/assets/i18n/English.json | 6 ++-
7 files changed, 64 insertions(+), 9 deletions(-)
diff --git a/src/app/shared/components/notifications/notifications.component.html b/src/app/shared/components/notifications/notifications.component.html
index 09559e0..d805165 100644
--- a/src/app/shared/components/notifications/notifications.component.html
+++ b/src/app/shared/components/notifications/notifications.component.html
@@ -1,4 +1,4 @@
- {{ notification.message }}
+ {{ notification.message | translate }}
\ No newline at end of file
diff --git a/src/app/shared/components/notifications/notifications.component.ts b/src/app/shared/components/notifications/notifications.component.ts
index 4608fe9..661b673 100644
--- a/src/app/shared/components/notifications/notifications.component.ts
+++ b/src/app/shared/components/notifications/notifications.component.ts
@@ -2,10 +2,11 @@ import { Component } from '@angular/core';
import { Observable } from 'rxjs';
import { NotificationService } from '../../services/notification.service';
import { CommonModule } from '@angular/common';
+import { TranslateModule } from '@ngx-translate/core';
@Component({
selector: 'app-notifications',
- imports: [CommonModule],
+ imports: [CommonModule, TranslateModule],
templateUrl: './notifications.component.html',
styleUrl: './notifications.component.scss'
})
diff --git a/src/app/user-management/setup-user/setup-user.component.html b/src/app/user-management/setup-user/setup-user.component.html
index 6348899..ad2e749 100644
--- a/src/app/user-management/setup-user/setup-user.component.html
+++ b/src/app/user-management/setup-user/setup-user.component.html
@@ -75,6 +75,31 @@
+
+
+
+
+
+
+ {{ 'fieldRequired' | translate }}
+
+
+ {{"invalidEmail" | translate}}
+
+
+
+
+
+
-
-
+
+
+
+
+
+
+
+
+
+
+ {{ 'fieldRequired' | translate }}
+
+