{% extends "layout.html" %} {% load currency_filters %} {% load i18n %} {% block title %} {% trans 'My account' %} | {{ block.super }} {% endblock %} {% block body_class %}account-profile{% endblock %} {% block breadcrumbs %} {% endblock %} {% block headertext %} {% trans 'Account' %} {% endblock %} {% block content %}
{% block tab_profile %}

{% trans 'Profile' %}

{% block profile_fields %} {% for field in profile_fields %} {% endfor %} {% endblock %}
{% trans 'Name' %} {{ request.user.get_full_name|default:'-' }}
{% trans 'Email address' %} {{ user.email }}
{{ field.name }} {{ field.value|default:"-" }}
{% trans 'Date registered' %} {{ user.date_joined }}
{% endblock %}
{% block tab_orderhistory %}

{% trans 'Order history' %}

{% if orders %} {% for order in orders %} {% endfor %}
{% trans 'Order number' %} {% trans 'Total inc tax' %} {% trans 'Date submitted' %}
{{ order.number }} {{ order.total_incl_tax|currency }} {{ order.date_placed }} {% trans 'View' %}
{% csrf_token %}
{% else %}

{% trans "You haven't placed any orders yet." %}

{% endif %} {% endblock %}
{% block tab_addressbook %}

{% trans "Address book" %}

{% trans 'Number of addresses in addressbook' %} {{ addressbook_size }}
{% trans 'Default shipping address' %} {{ default_shipping_address|default:"-" }}
{% trans 'Default billing address' %} {{ default_billing_address|default:"-" }}
{% endblock %}
{% block tab_emailhistory %}

{% trans 'Email history' %}

{% if not emails %}

{% trans "You haven't been sent any emails yet." %}

{% else %} {% for email in emails %} {% endfor %}
{% trans 'Date sent' %} {% trans 'Subject' %}
{{ email.date_sent }} {{ email.subject }} {% trans 'View' %}
{% endif %} {% endblock %}
{% block tab_alerts %}

{% trans "Alerts" %}

{% if not alerts %}

{% trans "You do not have any active alerts for out-of-stock products." %}

{% else %}
{% csrf_token %} {% for alert in alerts %} {% endfor %}
{% trans "Product" %} {% trans "Status" %} {% trans "Date created" %}
{% with product=alert.product %} {{ product.get_title }} {% endwith %} {{ alert.status }} {{ alert.date_created }} {% if alert.can_be_cancelled %} {% endif %}
{% endif %} {% endblock %}
{% block extra_tabs %} {% endblock %}
{% endblock content %}