{% load i18n %} {% load satchmo_currency %} {% for cert in order.giftcertificates.all %} {% if forloop.first %}
{% trans 'Gift Certificate' %}
{% if cert.recipient_email %}
{% with cert.recipient_email as recipient %}
{% blocktrans %}To: {{ recipient }}{% endblocktrans %}
{% endwith %}
{% endif %}
{% with cert.start_balance|currency as start_balance %}
{% blocktrans %}Starting Balance: {{ start_balance }}{% endblocktrans %}
{% endwith %}
{% with cert.code as code %}
{% blocktrans %}Code: {{ code }}{% endblocktrans %}
{% endwith %}
{% if cert.message %}
{% with cert.message as message %}
{% blocktrans %}Message: {{ message }}{% endblocktrans %}
{% endwith %}
{% endif %}