Skip to content

Commit

Permalink
Invoices: provide overridable template blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
julen committed May 1, 2017
1 parent bda10cc commit 1f2cd4a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pootle/templates/invoices/invoice.html
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
<div class="border">
<table class="header">
<tr>
<td rowspan="4" class="logo"></td>
<td rowspan="4" class="logo">{% block logo %}{% endblock %}</td>
<td class="label">INVOICE:</td>
<td class="value">{{ id }}</td>
</tr>
Expand Down
2 changes: 2 additions & 0 deletions pootle/templates/invoices/invoice_message.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
</p>
{% endif %}

{% block body %}
{% if accounting %}
<p>This email is sent automatically by {{ POOTLE_TITLE }} on behalf of the user.</p>

Expand All @@ -23,6 +24,7 @@

<p>In case of questions, please contact our your managers at [email protected]</p>
{% endif %}
{% endblock %}

{% include 'invoices/_email_invoice_table.html' %}
</body>
Expand Down
2 changes: 2 additions & 0 deletions pootle/templates/invoices/no_invoice_message.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
</p>
{% endif %}

{% block body %}
{% if correction_added %}
<p>This is to inform you that your balance at {{ POOTLE_TITLE }} is {{ balance }} {{ user.currency }}, which is less than the minimal payment of {{ minimal_payment }} {{ user.currency }} defined for your account.</p>
<p>Because of this, there will be no payments from us during this payment cycle. The amount of {{ balance }} {{ user.currency }} will be carried over to the next payment cycle. You will see two corrections in your statistics dashboard reflecting the carry-over (one in the previous month, and on in the current one).</p>
Expand All @@ -26,5 +27,6 @@
<p>
In case of questions, please contact our managers at [email protected]
</p>
{% endblock %}
</body>
</html>

0 comments on commit 1f2cd4a

Please sign in to comment.