feat(dashboard): Variant edit form (#6870)

**What**
- Adds form to edit variant details.
- If stock and inventory modules are installed we omit inputs for stock and inventory as they should be managed in a separate form in that case. (Still a bit unsure about this, but its what we have in the current admin)
This commit is contained in:
Kasper Fabricius Kristensen authored and GitHub committed 2024-04-01 16:38:49 +00:00
1 parent 8363dbec4f
commit b2763647f7
10 files changed
+632 -8

No files matched your search

@@ -43,6 +43,10 @@
"includesTaxTooltip": "Enter the total amount including tax. The net amount excluding tax will be automatically calculated and saved.",
"timeline": "Timeline"
},
"validation": {
"mustBeInt": "The value must be a whole number.",
"mustBePositive": "The value must be a positive number."
},
"nav": {
"general": "General",
"developer": "Developer",
@@ -181,6 +185,18 @@
"published": "Published",
"proposed": "Proposed",
"rejected": "Rejected"
},
"variant": {
"edit": {
"header": "Edit Variant"
},
"inventory": {
"header": "Stock & Inventory",
"manageInventoryLabel": "Manage inventory",
"manageInventoryHint": "When enabled the inventory level will be regulated when orders and returns are created.",
"allowBackordersLabel": "Allow backorders",
"allowBackordersHint": "When enabled the variant can be sold even if the inventory level is below zero."
}
}
},
"collections": {
@@ -940,9 +956,13 @@
"width": "Width",
"length": "Length",
"weight": "Weight",
"midCode": "MID Code",
"hsCode": "HS Code",
"countryOfOrigin": "Country of Origin",
"midCode": "MID code",
"hsCode": "HS code",
"ean": "EAN",
"upc": "UPC",
"inventoryQuantity": "Inventory quantity",
"barcode": "Barcode",
"countryOfOrigin": "Country of origin",
"material": "Material",
"thumbnail": "Thumbnail",
"sku": "SKU",