From db27510c7b8a3c106d146ad1dfdb5d92c8ab6523 Mon Sep 17 00:00:00 2001 From: sysadmin Date: Thu, 13 Nov 2025 23:18:11 +0000 Subject: [PATCH] feat: Add spreadsheet editor to Create page Extends the variant collection spreadsheet editor to the Create page for consistency. --- .../Views/VariantCollections/Create.cshtml | 86 +++++++++++++++++-- 1 file changed, 80 insertions(+), 6 deletions(-) diff --git a/LittleShop/Areas/Admin/Views/VariantCollections/Create.cshtml b/LittleShop/Areas/Admin/Views/VariantCollections/Create.cshtml index 2b13be9..16698ed 100644 --- a/LittleShop/Areas/Admin/Views/VariantCollections/Create.cshtml +++ b/LittleShop/Areas/Admin/Views/VariantCollections/Create.cshtml @@ -29,12 +29,26 @@
- - -
- Define properties as JSON array. Each property has a "name" and optional "values" array. -
If "values" is null, users can enter freeform text. If "values" is an array, users select from dropdown. -
Example: [{"name":"Size","values":["S","M","L"]},{"name":"Colour","values":null}] + + + +
+ + + + +
+ How to use: +
    +
  • Click column headers to select property type (Size, Color, Material, Storage, or Custom)
  • +
  • Click cells to edit values directly
  • +
  • Right-click for menu to add/remove rows and columns
  • +
  • Keyboard shortcuts: Tab to move right, Enter to move down, Ctrl+D to delete, Ctrl+Enter to save
  • +
  • Mobile: Swipe rows left/right to delete
  • +
+ Changes are automatically saved when you click "Create Collection" below.
@@ -51,4 +65,64 @@ @section Scripts { @{await Html.RenderPartialAsync("_ValidationScriptsPartial");} + + + + + + + + + + + + + } \ No newline at end of file