{% extends 'oscar/dashboard/layout.html' %} {% load currency_filters %} {% load i18n %} {% load humanize %} {% 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 "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 "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|intcomma:False }} |
| {% 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 "Adjust" %} | {% trans "Used bonus" %} | {% trans "Expired bonus" %} | {% trans "Can using bonus" %} | {% trans "Date placed" %} | {% trans "Expired Time" %} | {% trans "Note" %} | |
|---|---|---|---|---|---|---|---|---|---|---|
| {% if record.order %}{{ record.order.number }}{% endif %} | {{ record.use }} | {{ record.receive }} | {{ record.adjust }} | {{ record.usedBonus }} | {{ record.expiredBonus }} | {% if record.canUsingBonus >= 0 %}{{ record.canUsingBonus }}{% else %}0{% endif %} | {{ record.createdTime|date:"Y/m/d H:i" }} |
{% trans 'System default' %}: {% if record.systemExpireTime %}{{ record.systemExpireTime|date:"Y/m/d H:i" }}{% else %}-{% endif %} {% trans "Expired Time" %}: {% if record.expectedExpireTime %}{{ record.expectedExpireTime|date:"Y/m/d H:i" }}{% else %}-{% endif %} |
{{ record.note|default:"-" }} | {% if record.order %}{% trans "View" %}{% endif %} |
{% 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." %} |