{% csrf_token %} {% if form.errors %} {% endif %}
{% if is_create %}

New profile

{% endif %} {% include "htmx/forms/input_field.html" with label=form.name.label max_width="md" field=form.name maxlength=40 %}
{% if form.instance.pk %} {% include form.modal.template_name with modal=form.modal %} {% else %} {% endif %}
{{ form.as_div }}