{% load util %} {% load form_util %}
{{ form.non_field_errors }}
{% for bf in form.visible_fields %}
{% if bf|form_field_is_dropdown %} {{ bf|get_form_field_select:existing|safe }} {% else %} {{ bf|get_form_field_input:existing|safe }} {% endif %}
{% if bf.help_text|exists %}
Info: {{ bf.help_text|safe }}
{% endif %}
{# for debugging #} {# bf.field|to_dict #}{# existing; todo: fix select existing values in dropdown #} {# existing #} {{ bf.errors }}
{% endfor %}