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

{% trans "Profile" %}

{% trans "These details are stored in your account. Changes apply to every service that uses it." %}

{% if notice == "saved" %}

{% trans "Your changes were saved." %}

{% elif notice == "unchanged" %}

{% trans "Nothing to change." %}

{% endif %} {% if form.errors %} {% endif %} {% if details %}
{% trans "User name" %}
{{ details.username }}
{% trans "E-mail address" %}
{% if details.mail %}{{ details.mail }}{% else %}–{% endif %} {% trans "Change e-mail address" %}
{% endif %}
{% csrf_token %} {% trans "For example +49 171 123456. A number that starts with 0 is read as German." as phone_hint %} {% for item in fields %} {% if item.field.name == "first_name" %} {% include "profile/_text_field.html" with field=item.field label=item.label max_length=item.max_length autocomplete="given-name" required=True %} {% elif item.field.name == "last_name" %} {% include "profile/_text_field.html" with field=item.field label=item.label max_length=item.max_length autocomplete="family-name" required=True %} {% elif item.field.name == "display_name" %} {% include "profile/_text_field.html" with field=item.field label=item.label max_length=item.max_length autocomplete="name" required=True %} {% else %} {% include "profile/_text_field.html" with field=item.field label=item.label max_length=item.max_length autocomplete="tel" input_type="tel" hint=phone_hint %} {% endif %} {% endfor %}

{% trans "Cancel" %}

{% endblock %}