70f39de9d8
- Added PRODUCTS_ROUTES to app routing. - Removed roles.const.ts and related references to central-auth-roles. - Updated login component to remove role selection logic. - Integrated ToastService for success notifications in customer, inventory, product brand, product category, supplier, and user forms. - Implemented product and category selection fields in product form. - Created reusable select components for product brands and categories. - Enhanced user form with password validation and role selection. - Established roles service for fetching roles from the API.
19 lines
631 B
HTML
19 lines
631 B
HTML
<app-page-data-list
|
|
[pageTitle]="'مدیریت کاربران'"
|
|
[addNewCtaLabel]="'افزودن کاربر جدید'"
|
|
[columns]="columns"
|
|
[showAdd]="true"
|
|
emptyPlaceholderTitle="کاربری یافت نشد"
|
|
emptyPlaceholderDescription="برای افزودن کاربر جدید، روی دکمهٔ بالا کلیک کنید."
|
|
[items]="items()"
|
|
[loading]="loading()"
|
|
[showDetails]="true"
|
|
[showAdd]="true"
|
|
(onAdd)="openAddForm()"
|
|
>
|
|
<ng-template #role let-data>
|
|
<catalog-role-tag [role]="data.role" />
|
|
</ng-template>
|
|
</app-page-data-list>
|
|
<user-form [(visible)]="visibleForm" (onSubmit)="refresh()" />
|