- Problem adding documents

This commit is contained in:
Josako
2025-11-18 11:14:49 +01:00
parent 78043ab3ef
commit f2604db5a9
5 changed files with 113 additions and 14 deletions

View File

@@ -9,6 +9,12 @@
{% block content %}
<form method="post" enctype="multipart/form-data">
{{ form.hidden_tag() }}
{# Debug: render CSRF veld expliciet om aanwezigheid in de DOM te garanderen #}
{% if form.csrf_token %}{{ form.csrf_token }}{% endif %}
<script>
// Client-side debug: bevestig dat het CSRF veld in de DOM staat
console.debug('[add_document] CSRF present in DOM?', !!document.querySelector('input[name="csrf_token"]'));
</script>
{% set disabled_fields = [] %}
{% set exclude_fields = [] %}
{% for field in form.get_static_fields() %}