{% extends "touchtechnology/admin/workbook/list.inc.html" %} {% load i18n common admin_workbook %} {% block table-headings %} {% trans "Name" %} {# Registered is the first to go on a narrow screen, last login is kept #} {% trans "Registered" %} {% trans "Last login" %} {% endblock %} {% block table-columns %} {# The email address goes under the name, unless there is none or it is the name. #} {% with name=obj.get_full_name|default:obj.get_username %} {# A halo marks who can sign in to the admin: one for staff, a brighter one for a superuser. #} {% if change_perm in object_perms %} {{ name }} {% else %} {{ name }} {% endif %} {% if obj.email and obj.email != name %}{{ obj.email }}{% endif %} {% endwith %} {{ obj.date_joined|date:"j M Y" }} {% if obj.last_login %}{{ obj.last_login|date:"j M Y" }}{% else %}{% trans "Never" %}{% endif %} {% endblock %} {% block empty-row-colspan %}4{% endblock %} {% block delete-data-title %}{{ obj.get_full_name|default:obj.get_username }}{% endblock %} {% block row-buttons-items %} {% if change_perm in object_perms %}
  • {% icon "pencil" %}{% trans "Edit" %}
  • {% endif %} {% if add_perm in object_perms %}
  • {% icon "lock" %}{% trans "Security" %}
  • {% endif %} {% endblock %} {# The list's one Delete: the base would add another from the record's own urls. #} {% block row-buttons-delete %} {% if delete_perm in object_perms %} {% url 'admin:auth:users:delete' obj.pk as delete_url %}
  • {% include "touchtechnology/admin/workbook/_delete.html" with action=delete_url thing=obj.get_full_name|default:obj.get_username %}
  • {% endif %} {% endblock %}