{% load i18n phoxtail_core_tags phoxtail_design_tags %} {% comment %} The form alone, so a failed save can re-render it in place through an out-of-band swap: re-rendering the whole drawer would tear the modal out of the DOM and replay its open animation on every error. {% endcomment %}
{% csrf_token %} {{ form.media }}

{% icon "person" %} {% translate "Personal" %}

{% field "input" form.first_name show_label=True show_help_text=False %} {% field "input" form.last_name show_label=True show_help_text=False %} {% field "input" form.born_at %} {% field "select" form.gender %} {% field "select" form.country %} {% field "phone" form.phone_number show_label=True show_help_text=False %}

{% icon "image" %} {% translate "Avatar" %}

{% if user.avatar %} {% endif %} {% for error in form.avatar.errors %}

{{ error }}

{% endfor %}