{% extends "postorius/base.html" %} {% load i18n %} {% load pagination %} {% load bootstrap_tags %} {% load postorius_helpers %} {% block head_title %} {% trans 'Manage user' %} - {{ auser|user_display }} {% endblock %} {% block content %}

{{ auser|user_display }}

{% csrf_token %} {% bootstrap_form_horizontal user_form 2 4 %}

{% trans 'Addresses' %}

{% csrf_token %} {{ addresses.management_form }}
{% for form in addresses %} {% if forloop.first %} {% for field in form.visible_fields %} {% endfor %} {% endif %} {% for field in form %} {% endfor %} {% endfor %}
{% trans 'Email' %}
{{ form.address.email }}{{ field }}

{% trans 'Subscriptions' %}

{% if subscriptions.forms %}
{% csrf_token %} {{ subscriptions.management_form }}
{% for form in subscriptions %} {% if forloop.first %} {% for field in form.visible_fields %} {% endfor %} {% endif %} {% for field in form %} {% endfor %} {% endfor %}
{% trans 'List' %} {% trans 'Address' %} {% trans 'Role' %}
{{ form.member.list_id }} {{ form.member.address }} {% trans form.member.role %}{{ field|add_form_control }}
{% else %} {% trans 'User has no subscriptions.' %} {% endif %} {% if django_user %}

{% trans 'Web Account' %}

{% trans 'Username' %} {{ django_user.username }}
{% trans 'Superuser' %} {{ django_user.is_superuser|yesno|capfirst }}
{% trans 'Last login' %} {{ django_user.last_login|date:"DATETIME_FORMAT" }}
{% trans 'Date joined' %} {{ django_user.date_joined|date:"DATETIME_FORMAT" }}

{% trans 'Change password' %}

{% bootstrap_form_horizontal change_password 2 6 %}
{% endif %}

{% trans 'Delete Account' %}

Delete {% endblock content %}