etFields function to the modal's show event
            modal.addEventListener('show.bs.modal', resetFields);
        }

        const resetButton = document.querySelector('#reset-button');
        resetButton.addEventListener('click', resetFields);
    </script>
{% endblock javascripts %}

