{% extends 'dashboard/layout.html' %} {% load url from future %} {% load dashboard_tags %} {% load i18n %} {% block body_class %}users{% endblock %} {% block title %} {% trans "Customers" %} | {{ block.super }} {% endblock %} {% block header %} {% endblock header %} {% block breadcrumbs %} {% endblock %} {% block dashboard_content %}

{% trans "Search" %}

{% include "partials/form_fields_inline.html" with form=form %} {% trans "Reset" %}
{% block users_list %} {% if user_list %}
{% csrf_token %} {% block user_list_header %} {% endblock %} {% for user in user_list %} {% block user_list_row %} {% endblock %} {% endfor %}

{% if queryset_description != "All users" %} {{ queryset_description }} {% endif %}

{% trans "Bulk Actions" %}
{% trans "Email" %} {% trans "Name" %} {% trans "Active?" %} {% trans "Staff?" %} {% trans "Date registered" %} {% trans "Num Orders" %}
{{ user.email }} {{ user.get_full_name|default:"-" }} {{ user.is_active|yesno:_("True,False") }} {{ user.is_staff|yesno:_("True,False") }} {{ user.date_joined|date:"d/m/y H:i" }} {% num_orders user %} {% trans "View" %}
{% include "partials/pagination.html" %}
{% else %}
{{ queryset_description }}
{% trans "No customers found." %}
{% endif %} {% endblock %} {% endblock dashboard_content %}