diff --git a/src/app/features/admin/products/components/admin-product-form.component.html b/src/app/features/admin/products/components/admin-product-form.component.html index c943ca3..b4798eb 100644 --- a/src/app/features/admin/products/components/admin-product-form.component.html +++ b/src/app/features/admin/products/components/admin-product-form.component.html @@ -1,11 +1,21 @@
- - - - + + + + + + + + + + + + - + + +
@@ -18,16 +28,26 @@

{{ 'adminProducts.pricing' | translate }}

- - - + + + + + + + + +

{{ 'adminProducts.inventory' | translate }}

- + + + - + + +

{{ 'adminProducts.content' | translate }}

@@ -41,17 +61,25 @@

{{ 'adminProducts.translations' | translate }}

@for (locale of ['en','ru','hy']; track locale) {
- - + + + + + +
}

{{ 'adminProducts.seo' | translate }}

- + + + - + + +

{{ 'adminProducts.marketplace' | translate }}

@@ -60,7 +88,9 @@ - + + +

{{ 'adminProducts.customer' | translate }}

@@ -77,5 +107,5 @@ -
+
{{ 'adminProducts.save' | translate }}
diff --git a/src/app/features/admin/products/components/admin-product-form.component.scss b/src/app/features/admin/products/components/admin-product-form.component.scss index de3daf6..b46432e 100644 --- a/src/app/features/admin/products/components/admin-product-form.component.scss +++ b/src/app/features/admin/products/components/admin-product-form.component.scss @@ -4,13 +4,12 @@ .grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } label { display: grid; gap: 6px; font-weight: 600; } -label.full { grid-column: 1 / -1; } +label.full, app-form-field.full { grid-column: 1 / -1; } label.check { display: flex; align-items: center; gap: 8px; } -input, textarea, select { width: 100%; padding: 10px 12px; border: 1px solid var(--border-color, #d3dad9); border-radius: 10px; font: inherit; } +textarea, select { width: 100%; padding: 10px 12px; border: 1px solid var(--border-color, #d3dad9); border-radius: 10px; font: inherit; } input[type='checkbox'] { width: auto; } .sub-block { border-top: 1px dashed #d9e2e1; padding-top: 12px; } .readonly-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .readonly-grid article { border: 1px solid #ececec; border-radius: 12px; padding: 12px; } .actions { display: flex; justify-content: flex-end; } -button { min-height: 42px; border-radius: 10px; border: 1px solid #497671; background: #497671; color: #fff; padding: 0 14px; font-weight: 700; cursor: pointer; } @media (max-width: 900px) { .grid.two, .grid.three, .readonly-grid { grid-template-columns: 1fr; } } diff --git a/src/app/features/admin/products/components/admin-product-form.component.ts b/src/app/features/admin/products/components/admin-product-form.component.ts index 1f5f09a..fea5c77 100644 --- a/src/app/features/admin/products/components/admin-product-form.component.ts +++ b/src/app/features/admin/products/components/admin-product-form.component.ts @@ -2,11 +2,14 @@ import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from import { FormsModule } from '@angular/forms'; import { AdminProduct, AdminProductCategoryOption } from '../models/admin-product.model'; import { TranslatePipe } from '../../../../i18n/translate.pipe'; +import { ButtonComponent } from '../../../../shared/ui/button/button.component'; +import { InputComponent } from '../../../../shared/ui/input/input.component'; +import { FormFieldComponent } from '../../../../shared/ui/form-field/form-field.component'; @Component({ selector: 'app-admin-product-form', standalone: true, - imports: [FormsModule, TranslatePipe], + imports: [FormsModule, TranslatePipe, ButtonComponent, InputComponent, FormFieldComponent], templateUrl: './admin-product-form.component.html', styleUrls: ['./admin-product-form.component.scss'], changeDetection: ChangeDetectionStrategy.OnPush