- 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

@@ -11,18 +11,18 @@
{{ form.hidden_tag() }}
{% set disabled_fields = [] %}
{% set exclude_fields = [] %}
{% for field in form.get_static_fields() %}
{% for field in form %}
{{ render_field(field, disabled_fields, exclude_fields) }}
{% endfor %}
<!-- Render Dynamic Fields -->
{% for collection_name, fields in form.get_dynamic_fields().items() %}
{% if fields|length > 0 %}
<h4 class="mt-4">{{ collection_name }}</h4>
{% endif %}
{% for field in fields %}
{{ render_field(field, disabled_fields, exclude_fields) }}
{% endfor %}
{% endfor %}
{# {% for collection_name, fields in form.get_dynamic_fields().items() %}#}
{# {% if fields|length > 0 %}#}
{# <h4 class="mt-4">{{ collection_name }}</h4>#}
{# {% endif %}#}
{# {% for field in fields %}#}
{# {{ render_field(field, disabled_fields, exclude_fields) }}#}
{# {% endfor %}#}
{# {% endfor %}#}
<button type="submit" class="btn btn-primary">Register Tenant Make</button>
</form>
{% endblock %}