      </div>
    {% endif %}
{% endblock %}

{% block morescripts %}
    <!-- Queue Tasks with AJAX -->
    <script>
        $('.js-queue-task').each(function(index) {
            $(this).on('submit', function (event) {
                // Prevent default browser behavior for a form submission
                event.preventDefault();
                console.log("Form submitted");
                // Get the URL from form attribute
                var url = $(this).attr('queue-task-url');
                // Sen