From bf3df61c9df8a85ad88517eb51eb6c932646fe2c Mon Sep 17 00:00:00 2001 From: Mazdak Gibran <141390141+mazdakgibran@users.noreply.github.com> Date: Fri, 12 Dec 2025 11:59:06 +0500 Subject: [PATCH] Setup user setup user --- .../change-password.component.html | 24 +- .../setup-user/setup-user.component.html | 223 +++++++++++++++++- .../setup-user/setup-user.component.ts | 35 ++- src/assets/i18n/Arabic.json | 1 + src/assets/i18n/English.json | 2 +- 5 files changed, 268 insertions(+), 17 deletions(-) diff --git a/src/app/user-management/change-password/change-password.component.html b/src/app/user-management/change-password/change-password.component.html index d4c2b34..37e5894 100644 --- a/src/app/user-management/change-password/change-password.component.html +++ b/src/app/user-management/change-password/change-password.component.html @@ -71,25 +71,21 @@
-
- - - + maxlength="500" + placeholder="{{ 'confirmPassword' | translate }}" appNoWhitespaces + rows="3" /> + + +
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 f9a21ed..0143afe 100644 --- a/src/app/user-management/setup-user/setup-user.component.html +++ b/src/app/user-management/setup-user/setup-user.component.html @@ -1 +1,222 @@ -

setup-user works!

+
+
+
+
+
+ +
+
+
+
+
+
+
+
+
+
+
+
+ {{'setupUser' | translate}} +
+
+
+
+
+
+ +
+
+ + +
+ +
+
+
+
+
+ +
+ + + + + +
+
+
+ +
+
+
+
+ +
+ + + +
+
+
+
+ +
+
+
+
+ + + +
+
+ + +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{'SetupUserDetails' | translate}} +
+ + + + + +
+
+
+
+ + + + + + + + + + + + + + + + + + +
{{'UserID' | translate}}{{'Name' | translate}}{{'PhoneNumber' | translate}}{{'action' | translate}}
+
+ + + + + + + +
+
+
+
+ + +
+ +
+ {{ 'page' | translate }} {{ 'of' | translate }} ({{ 'totalItems' | translate }}) +
+ +
+ + +
+
+ +
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file diff --git a/src/app/user-management/setup-user/setup-user.component.ts b/src/app/user-management/setup-user/setup-user.component.ts index d837b06..bb4f335 100644 --- a/src/app/user-management/setup-user/setup-user.component.ts +++ b/src/app/user-management/setup-user/setup-user.component.ts @@ -1,11 +1,44 @@ +import { CommonModule } from '@angular/common'; import { Component } from '@angular/core'; +import { FormGroup, FormsModule, ReactiveFormsModule } from '@angular/forms'; +import { NgSelectModule } from '@ng-select/ng-select'; +import { TranslateModule } from '@ngx-translate/core'; +import { pageSizeOptions } from '../../utils/app.constants'; @Component({ selector: 'app-setup-user', - imports: [], + standalone: true, + imports: [TranslateModule, ReactiveFormsModule, FormsModule, CommonModule, NgSelectModule], templateUrl: './setup-user.component.html', styleUrl: './setup-user.component.scss' }) export class SetupUserComponent { + allItems: any[] = []; + currentPage: number = 1; + pageSizeOptions = pageSizeOptions + itemsPerPage: number = 5; + searchText: any; + createUserForm!: FormGroup; + + nextPage() { + throw new Error('Method not implemented.'); + } + + previousPage() { + throw new Error('Method not implemented.'); + } + + totalPages() { + return 1; + } + + toggleCard(arg0: string) { + throw new Error('Method not implemented.'); + } + + onSubmit() { + throw new Error('Method not implemented.'); + } + } diff --git a/src/assets/i18n/Arabic.json b/src/assets/i18n/Arabic.json index 4b3ac72..4293559 100644 --- a/src/assets/i18n/Arabic.json +++ b/src/assets/i18n/Arabic.json @@ -191,6 +191,7 @@ "update": "تحديث", "cancel": "يلغي", "thirdPartyRegistrationDetails": "تفاصيل تسجيل الطرف الثالث", + "SetupUserDetails": "إعداد تفاصيل المستخدم", "search": "يبحث", "thirdPartyNamePlaceholder": "أدخل اسم الطرف الثالث", "phoneNumberPlaceholder": "أدخل رقم الهاتف", diff --git a/src/assets/i18n/English.json b/src/assets/i18n/English.json index a1b5baf..d315829 100644 --- a/src/assets/i18n/English.json +++ b/src/assets/i18n/English.json @@ -99,7 +99,6 @@ "Role":"Role", "ResetPassword":"Reset Password", "EnterNewPassword":"Enter New Password", - "ConfirmPassword":"Confirm Password", "OldPassword":"Old Password", "newPasswordStatic":"New Password", "savePassword":"Save", @@ -194,6 +193,7 @@ "update": "Update", "cancel": "Cancel", "thirdPartyRegistrationDetails": "Third Party Registration Details", + "SetupUserDetails":"Setup User Details", "search": "Search", "thirdPartyNamePlaceholder": "Enter Third Party Name", "phoneNumberPlaceholder": "Enter Phone Number",