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

User{{ user_count|pluralize }} ({{ user_count }})

{% if perms.accounts.add_user %} {% endif %}
{% if perms.accounts.view_apitoken %} {% endif %} {% for managed_user in users %} {% if perms.accounts.view_apitoken %} {% endif %} {% endfor %}
Username Email Remote?API token
{% if managed_user.is_superuser %} {% else %} {% endif %} {{ managed_user.username }} {{ managed_user.email }} {% if managed_user.is_remote %}yes{% endif %}{% if managed_user.api_token %}yes{% endif %} {% if perms.accounts.change_user and managed_user.editable %} {% url 'accounts:update_user' managed_user.id as url %} {% button 'UPDATE' url "Edit User" %} {% endif %} {% if perms.accounts.delete_user and managed_user.deletable %} {% url 'accounts:delete_user' managed_user.id as url %} {% button 'DELETE' url "Delete User" %} {% endif %}

Service account{{ service_account_count|pluralize }} ({{ service_account_count }})

{% if perms.accounts.add_user and perms.accounts.add_apitoken %} {% url 'accounts:create_service_account' as url %} {% button 'CREATE' url "Create new Service Account" %} {% endif %}
{% if service_account_count %}
{% if perms.accounts.view_apitoken %} {% endif %} {% for service_account in service_accounts %} {% if perms.accounts.view_apitoken %} {% endif %} {% endfor %}
NameAPI token
{{ service_account.username }} {% if service_account.api_token %}yes{% endif %} {% if perms.accounts.change_user and service_account.editable %} {% url 'accounts:update_user' service_account.id as url %} {% button 'UPDATE' url "Edit Sevice Account" %} {% endif %} {% if perms.accounts.delete_user and service_account.deletable %} {% url 'accounts:delete_user' service_account.id as url %} {% button 'DELETE' url "Delete Service Account" %} {% endif %}
{% endif %} {% endblock %}