diff --git a/assets/views/admin/catalog/product_form.html b/assets/views/admin/catalog/product_form.html index 3eeae61..bd02266 100644 --- a/assets/views/admin/catalog/product_form.html +++ b/assets/views/admin/catalog/product_form.html @@ -127,62 +127,71 @@ {# --- Images gallery ------------------------------------------------------- #} - {# Existing images are reorderable (drag) and removable; the kept set is #} - {# submitted in order as repeated `existing_images` ids. New uploads accumulate #} - {# across separate "Add images" clicks into a DataTransfer that backs the hidden #} - {# `image` input (a native file input would otherwise replace its selection on #} - {# every pick); the controller stores and appends them after the kept images. #} + {# Unified drag-orderable gallery: existing images (with id) and new uploads #} + {# (placeholder blobs) live in a single list. The full order is submitted as #} + {# repeated `image_order` fields — an integer id for kept images or `new` for #} + {# each uploaded file. The DataTransfer backing the hidden `image` file input #} + {# is rebuilt after every reorder / add / remove so the file-part order matches #} + {# the relative order of `new` slots in `image_order`. #}
{{ t(key="images", lang=lang | default(value='sk')) }}

{{ t(key="gallery-hint", lang=lang | default(value='sk')) }}

-
-