{% extends "base.html" %} {% load i18n static socialprofile_tags crispy_forms_tags %} {% block headtitle %}{% trans "Profile for" %} {{ user.username }}{% endblock %} {% block content %}

{% trans "Edit" %} {{ user.username }}

{{ user_form.first_name.value|default:" " }} {{ user_form.last_name.value|default:" " }}

{% if user.social_profile.image_url %}

{% endif %}
{% crispy sp_form %} {{ sp_form | as_crispy_errors }}
{% csrf_token %}
    {{ user_form.as_ul }}
{% for field in user_form %} {% if field.label == 'Image banner' or field.label == 'Cropping banner' or field.label == 'Image' or field.label == 'Cropping' %}
{{ field.errors }}

{{ field }}

{% else %}
{{ field.errors }}

{{ field.label_tag }} {{ field }}

{% endif %} {% endfor %} {% for field in user_form %} {% if field.label == 'Image banner' or field.label == 'Cropping banner' or field.label == 'Image' or field.label == 'Cropping' %}
{{ field.errors }}

{{ field }}

{% else %}
{{ field.errors }}

{{ field.label_tag }} {{ field }}

{% endif %} {% endfor %}

{% trans "Social Connections" %}

{% endblock %}