{% extends 'base.html' %} {% block content %}

{{ object.get_type_display|title }} {{ object }}

{% if object.is_service_account %} {% else %} {% if not object.is_remote %} {% endif %} {% endif %} {% if object == request.user or perms.accounts.view_apitoken %} {% endif %} {% if perms.auth.view_group %} {% endif %}
name {{ object.username }}
username {{ object.username }}
email {{ object.email }}
superuser? {{ object.is_superuser|yesno }}
remote? {{ object.is_remote|yesno }}
verification device{{ verification_devices|length|pluralize }} {% if verification_devices %}
{% for verification_device in verification_devices %}
{{ verification_device.get_type_for_display }}
{{ verification_device.name }}
{% endfor %}
{% else %} - {% endif %}
API Token? {% if object.api_token %} yes {% if can_delete_token %} {% endif %} {% else %}
{% csrf_token %} no {% if can_add_token %} {% endif %}
{% endif %}
group{{ group_count|pluralize }} {% if group_count %} {% else %} - {% endif %}

{% if perms.accounts.change_user and object.editable %} Update {% endif %} {% if perms.accounts.delete_user and object.deletable %} Delete {% endif %}

{% endblock %}