{% extends 'oscar/dashboard/layout.html' %} {% load currency_filters %} {% load i18n %} {% block body_class %}{{ block.super }} users{% endblock %} {% block title %}{{ customer.email }} | {{ block.super }}{% endblock %} {% block breadcrumbs %}
{% endblock %} {% block headertext %}{{ customer.email }}{% endblock %} {% block dashboard_content %}| {% trans "Name" %} | {{ customer.get_full_name|default:"-" }} |
|---|---|
| {% trans "Email" %} | {{ customer.email }} |
| {% trans "Phone" %} | {% for address in customer.addresses.all %}{{ address.phone_number }} | {% endfor %} |
| {% trans "Active" %}? | {{ customer.is_active|yesno:_("Yes,No") }} |
| {% trans "Superuser" %}? | {{ customer.is_superuser|yesno:_("True,False") }} |
| {% trans "Staff" %}? | {{ customer.is_staff|yesno:_("True,False") }} |
| {% trans "Last login" %} | {{ customer.last_login }} |
| {% trans "Date joined" %} | {{ customer.date_joined }} |
| {% trans "Orderer address" %} |
{% for address in customer.addresses.all %}
{% if address.isOrdererAddress %}
{% for field in address.active_address_fields %}
{{ field }}
{% endfor %} |
| {% trans "Products viewed" %} | {{ record.num_product_views|default:0 }} |
| {% trans "Number of orders" %} | {{ record.num_orders|default:0 }} |
| {% trans "Number of ordered items" %} | {{ record.num_order_items|default:0 }} |
| {% trans "Total spent" %} | {{ record.total_spent|default:0|currency }} |
| {% trans "Bonus" %} | {{ customer.bonus }} |
| {% trans "Reviews written" %} | {{ customer.reviews.count }} |
| {% trans "Actions" %} |
| {% trans "Order Number" %} | {% trans "Num items" %} | {% trans "Total value" %} | {% trans "Date placed" %} | {% trans "Status" %} | |
|---|---|---|---|---|---|
| {{ order.number }} | {{ order.num_items }} | {{ order.basket_total_incl_tax|currency }} | {{ order.date_placed|date }} | {{ order.status|default:"-" }} | {% trans "View" %} |
| {% trans "This customer has not placed any orders yet." %} |
| {% trans "Order Number" %} | {% trans "Use" %} | {% trans "Receive" %} | {% trans "Date placed" %} | |
|---|---|---|---|---|
| {{ record.order.number }} | {{ record.use }} | {{ record.receive }} | {{ record.createdTime }} | {% trans "View" %} |
{% trans "This customer has not saved any addresses." %}
{% endfor %}| {% trans "Product ID" %} | {% trans "Score" %} | {% trans "Title" context "Product review title" %} | {% trans "Body" %} | {% trans "Date created" %} |
|---|---|---|---|---|
| {{ review.product_id }} | {{ review.score }} | {{ review.title }} | {{ review.body }} | {{ review.date_created }} |
| {% trans "This customer has not written any reviews yet." %} |