Skip to content

Commit 0e11a42

Browse files
committed
Fix
1 parent 80967fe commit 0e11a42

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

landolfio/inventory_frontend/templates/detail.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,7 @@ <h5 class="card-title mb-0">{% translate "Attachments" %}</h5>
623623
<div class="card-body overflow-auto flex-grow-1" id="attachments-drop-zone">
624624
<div class="row g-3" id="attachments-gallery">
625625
{% for photo in asset.attachments.all %}
626-
<div class="col-6 col-sm-4 col-md-custom-5 col-lg-2 col-xxl-3" data-attachment-id="{{ photo.pk|unlocalize }}">
626+
<div class="col-6 col-sm-4 col-md-custom-5 col-lg-2 col-xxl-3" data-attachment-id="{{ photo.pk }}">
627627
<div class="position-relative attachment-item" style="aspect-ratio: 1;">
628628
<img src="{{ photo.attachment.url }}"
629629
data-fancybox="gallery"
@@ -633,7 +633,7 @@ <h5 class="card-title mb-0">{% translate "Attachments" %}</h5>
633633
style="object-fit: cover; cursor: pointer;"/>
634634
<div class="attachment-controls position-absolute top-0 end-0 p-2">
635635
<button class="btn btn-sm btn-danger delete-attachment-btn"
636-
data-attachment-id="{{ photo.pk|unlocalize }}"
636+
data-attachment-id="{{ photo.pk }}"
637637
title="{% translate 'Delete attachment' %}">
638638
<i class="fas fa-trash"></i>
639639
</button>

0 commit comments

Comments
 (0)