{% extends "base.html" %} {% block headers %}{% endblock headers %} {% block submenu %} {% ifnotequal user.get_profile.account_type 3 %} {% endifnotequal %} {% endblock submenu %} {% block title %}Account Profile{% endblock title %} {% block heading %}Account Profile{% endblock heading %} {% block content %}
Viewing {{ account_info.username }}'s Profile
[ Edit ]
Username:
{{ account_info.username }}
Full names:
{{ account_info.first_name }} {{ account_info.last_name }}
Email Address:
{{ account_info.email }}
Account status:
{% if account_info.is_active %}Active{% else %}Disabled{% endif %}
Last login:
{{ account_info.last_login }}
Account created on:
{{ account_info.date_joined }}
Profile Settings
[ Edit ]
Account type:
{% if account_info.is_superuser %} Administrator {% else %} {% ifequal account_profile.account_type 2 %} Domain Administrator {% endifequal %} {% ifequal account_profile.account_type 3 %} User account {% endifequal %} {% endif %}
Scan email:
{% if account_profile.scan_mail %} Yes {% else %} No {% endif %}
Send quarantine report:
{% if account_profile.send_report %} Yes {% else %} No {% endif %}
Spam High Score:
{{ account_profile.sa_high_score }}
Spam Low Score:
{{ account_profile.sa_low_score }}
{% if not account_info.is_superuser %}
{% ifequal account_profile.account_type 2 %} Domains managed {% else %} Associated Addresses {% endifequal %} {% if user.is_superuser %} {% if addresses %}
[ Add ]
{% endif %} {% endif %}
{% for address in addresses %}
{% if user.is_superuser %} {% ifequal account_profile.account_type 2 %} {{ address.address }} {% else %} {{ address.address }} {% endifequal %} {% else %} {{ address.address }} {% endif %}
{% if address.enabled %} Enabled {% else %} Disabled {% endif %}
{% if user.is_superuser %} {% ifnotequal user.get_profile.account_type 3 %} Edit Delete {% endifnotequal %} {% endif %}
{% empty %}
No addresses stored at the moment.
{% if user.is_superuser %} Add Address {% endif %}
{% endfor %} {% endif %} {% endblock content %}