feat: refactor password input handling across multiple components
- Replaced individual password and confirm password fields with a shared-password-input component in the following components: - Partner Account Password Form - Consumer Account Form - Consumer User Form - Consumer Pos Form - Super Admin Consumer Account Form - Super Admin Partner Account Form - Super Admin Provider Form - Super Admin User Account Form - Modify Login Info Page - Introduced a new SharedPasswordInputComponent to encapsulate password input logic and validation messages. - Updated form handling to utilize reactive forms with shared components for better maintainability and consistency. - Added a ChangePasswordFormDialogComponent for changing passwords with validation. - Created API routes for business activity goods in the consumer module.
This commit is contained in:
@@ -46,17 +46,17 @@
|
||||
<div class="grid grid-cols-3 gap-4 items-center">
|
||||
@if (invoice.customer.type === "INDIVIDUAL") {
|
||||
<app-key-value label="نوع مشتری" value="حقیقی" />
|
||||
<app-key-value label="نام" [value]="invoice.customer.customer_individual?.first_name" />
|
||||
<app-key-value label="نام خانوادگی" [value]="invoice.customer.customer_individual?.last_name" />
|
||||
<app-key-value label="کد اقتصادی" [value]="invoice.customer.customer_individual?.economic_code" />
|
||||
<app-key-value label="کد ملی" [value]="invoice.customer.customer_individual?.national_id" />
|
||||
<app-key-value label="کد پستی" [value]="invoice.customer.customer_individual?.postal_code" />
|
||||
<app-key-value label="نام" [value]="invoice.customer.individual?.first_name" />
|
||||
<app-key-value label="نام خانوادگی" [value]="invoice.customer.individual?.last_name" />
|
||||
<app-key-value label="کد اقتصادی" [value]="invoice.customer.individual?.economic_code" />
|
||||
<app-key-value label="کد ملی" [value]="invoice.customer.individual?.national_id" />
|
||||
<app-key-value label="کد پستی" [value]="invoice.customer.individual?.postal_code" />
|
||||
} @else {
|
||||
<app-key-value label="نوع مشتری" value="حقوقی" />
|
||||
<app-key-value label="نام شرکت" [value]="invoice.customer.customer_legal?.company_name" />
|
||||
<app-key-value label="کد اقتصادی" [value]="invoice.customer.customer_legal?.economic_code" />
|
||||
<app-key-value label="کد ثبتی" [value]="invoice.customer.customer_legal?.registration_number" />
|
||||
<app-key-value label="کد پستی" [value]="invoice.customer.customer_legal?.postal_code" />
|
||||
<app-key-value label="نام شرکت" [value]="invoice.customer.legal?.company_name" />
|
||||
<app-key-value label="کد اقتصادی" [value]="invoice.customer.legal?.economic_code" />
|
||||
<app-key-value label="کد ثبتی" [value]="invoice.customer.legal?.registration_number" />
|
||||
<app-key-value label="کد پستی" [value]="invoice.customer.legal?.postal_code" />
|
||||
}
|
||||
</div>
|
||||
} @else if (invoice.unknown_customer) {
|
||||
|
||||
Reference in New Issue
Block a user