From 82727d3d933735eb2f21436204b8e597a3d1942d Mon Sep 17 00:00:00 2001 From: Saeid Doroudi Date: Mon, 1 Jan 2024 13:01:54 +0330 Subject: [PATCH] Implement create product view Fixes #43 --- locales/en.yml | 19 ++++++++++ src/components/Products/CreateProduct.vue | 45 +++++++++++++---------- 2 files changed, 44 insertions(+), 20 deletions(-) diff --git a/locales/en.yml b/locales/en.yml index 8539df1..a7dfa36 100644 --- a/locales/en.yml +++ b/locales/en.yml @@ -108,4 +108,23 @@ colors: nameRequired: Name is required colorRequired: Color not selected +products: + create: + title: Create Product + productInformation: Product Information + name: Product Name + barcode: Barcode + sku: SKU + description: Description + media: Media + pricing: Pricing + price: Price + discountedPrice: Discounted Price + inStock: InStock + category: Category + brand: Brand + keywords: Keywords + newKeyword: New Keyword + imageName: Image + not-found: Not found diff --git a/src/components/Products/CreateProduct.vue b/src/components/Products/CreateProduct.vue index 5bdef93..0c64064 100644 --- a/src/components/Products/CreateProduct.vue +++ b/src/components/Products/CreateProduct.vue @@ -54,17 +54,17 @@ function handlePreview(file: UploadFileInfo) { - - - + + + - - + + - - + + @@ -76,7 +76,7 @@ function handlePreview(file: UploadFileInfo) {
- + @@ -84,17 +84,17 @@ function handlePreview(file: UploadFileInfo) { - + - - + + - - + +
- InStock + {{ t('products.create.inStock') }}
@@ -102,16 +102,16 @@ function handlePreview(file: UploadFileInfo) { - + - + - + - New Keyword + {{ t('products.create.newKeyword') }} @@ -132,4 +132,9 @@ function handlePreview(file: UploadFileInfo) { - +