diff --git a/public/js/app.js b/public/js/app.js index 203b320..ec3d0a0 100755 --- a/public/js/app.js +++ b/public/js/app.js @@ -227,6 +227,12 @@ document.addEventListener('DOMContentLoaded', function() { document.getElementById('edit_item_name').value = data.name; document.getElementById('edit_item_description').value = data.description || ''; document.getElementById('edit_location').value = data.location || ''; + const currentImageDiv = document.getElementById('current_image'); + if (data.image) { + currentImageDiv.innerHTML = '
Huidige afbeelding:
Geen afbeelding
'; + } // Populate category select const categorySelect = document.getElementById('edit_item_category_id'); categorySelect.innerHTML = ''; diff --git a/templates/items.twig b/templates/items.twig index 156019d..6fa9795 100755 --- a/templates/items.twig +++ b/templates/items.twig @@ -87,6 +87,7 @@