{% extends "base.html" %} {% load i18n static %} {% block title %}{% trans "My Profile" %}{% endblock %} {% block content %}

{% trans "My Profile" %}

{% trans "Account" %}

{% csrf_token %}
{{ u_form.username }} {% if u_form.username.errors %}
{{ u_form.username.errors|striptags }}
{% endif %}
{{ u_form.first_name }} {% if u_form.first_name.errors %}
{{ u_form.first_name.errors|striptags }}
{% endif %}
{{ u_form.last_name }} {% if u_form.last_name.errors %}
{{ u_form.last_name.errors|striptags }}
{% endif %}
{{ u_form.email }} {% if u_form.email.errors %}
{{ u_form.email.errors|striptags }}
{% endif %}
{{ p_form.phone }} {% if p_form.phone.errors %}
{{ p_form.phone.errors|striptags }}
{% endif %}
{{ p_form.language }} {% if p_form.language.errors %}
{{ p_form.language.errors|striptags }}
{% endif %}
{{ p_form.timezone }} {% if p_form.timezone.errors %}
{{ p_form.timezone.errors|striptags }}
{% endif %}
{{ p_form.address }} {% if p_form.address.errors %}
{{ p_form.address.errors|striptags }}
{% endif %}
{{ p_form.avatar }} {% if p_form.avatar.errors %}
{{ p_form.avatar.errors|striptags }}
{% endif %}
{% if request.user.profile and request.user.profile.avatar %} avatar {% endif %}

{% trans "Change Password" %}

{% csrf_token %}
{{ pwd_form.old_password }} {% if pwd_form.old_password.errors %}
{{ pwd_form.old_password.errors|striptags }}
{% endif %}
{{ pwd_form.new_password1 }} {% if pwd_form.new_password1.errors %}
{{ pwd_form.new_password1.errors|striptags }}
{% endif %}
{{ pwd_form.new_password2 }} {% if pwd_form.new_password2.errors %}
{{ pwd_form.new_password2.errors|striptags }}
{% endif %}
{% endblock %}