Skip to content
Snippets Groups Projects
Commit 84c58e4b authored by Tom Teichler's avatar Tom Teichler :beers:
Browse files

Fix email template, add link to send mails

parent 3b59de15
No related branches found
No related tags found
No related merge requests found
{% extends "templated_email/base.email" %} {% extends "templated_email/base.email" %}
{% load i18n %} {% load i18n %}
{% block subject %}{% trans "Invoice" %} {{ invoice }}{% endblock %} {% block subject_content %}{% trans "Invoice" %} {{ invoice.number }}{% endblock %}
{% block plain %} {% block html_content %}
{% blocktrans with invoice=invoice %} <p>
Please find attached invoice number {{ invoice.transaction_id }} for {{ {% blocktrans with number=invoice.number description=invoice.description %}
invoice.description }} please carefully read the PDF file concerning all Please find attached invoice number {{ number }} for {{ description }}.
payment details. Please carefully read the PDF file concerning all payment details.
{% endblocktrans %} {% endblocktrans %}
</p>
{% endblock %} {% if invoice.status == "waiting" %}
{% block html %}
<p> <p>
{% blocktrans with invoice=invoice %} {% blocktrans %}
Please find attached invoice number {{ invoice.transaction_id }} for {{ Please visit the following link to view and make the payment:
invoice.description }} please carefully read the PDF file concerning all
payment details.
{% endblocktrans %} {% endblocktrans %}
</p> </p>
<a href="{{ BASE_URL }}{{ invoice.get_absolute_url }}">{{ BASE_URL }}{{ invoice.get_absolute_url}}</a>
{% endif %}
{% endblock %} {% endblock %}
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
{% has_perm 'tezor.display_purchased_items_rule' user object as can_view_purchased_items %} {% has_perm 'tezor.display_purchased_items_rule' user object as can_view_purchased_items %}
{% has_perm 'tezor.display_billing_rule' user object as can_view_billing_information %} {% has_perm 'tezor.display_billing_rule' user object as can_view_billing_information %}
{% has_perm 'tezor.print_invoice_rule' user object as can_print_invoice %} {% has_perm 'tezor.print_invoice_rule' user object as can_print_invoice %}
{% has_perm 'tezor.send_invoice_email_rule' user object as can_send_invoice_email %}
<h1>{% trans "Invoice" %} {{ object.number }} — {{ object.created.date }}</h1> <h1>{% trans "Invoice" %} {{ object.number }} — {{ object.created.date }}</h1>
...@@ -21,6 +22,9 @@ ...@@ -21,6 +22,9 @@
{% if can_print_invoice %} {% if can_print_invoice %}
<a class="btn colour-primary waves-effect waves-light" href="{% url 'print_invoice' object.token %}">{% trans "Print" %}</a> <a class="btn colour-primary waves-effect waves-light" href="{% url 'print_invoice' object.token %}">{% trans "Print" %}</a>
{% endif %} {% endif %}
{% if can_send_invoice_email %}
<a class="btn colour-primary waves-effect waves-light" href="{% url 'send_invoice_by_token' object.token %}">{% trans "Send Email" %}</a>
{% endif %}
<div class="row"> <div class="row">
{% if can_view_billing_information %} {% if can_view_billing_information %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment