File tree Expand file tree Collapse file tree
landolfio/inventory_frontend/templates Expand file tree Collapse file tree Original file line number Diff line number Diff 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 >
You can’t perform that action at this time.
0 commit comments