Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
Onboarding
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
3lisvequii
Onboarding
Commits
84c58e4b
Commit
84c58e4b
authored
3 years ago
by
Tom Teichler
Browse files
Options
Downloads
Patches
Plain Diff
Fix email template, add link to send mails
parent
3b59de15
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
aleksis/apps/tezor/templates/templated_email/invoice.email
+12
-17
12 additions, 17 deletions
aleksis/apps/tezor/templates/templated_email/invoice.email
aleksis/apps/tezor/templates/tezor/invoice/full.html
+4
-0
4 additions, 0 deletions
aleksis/apps/tezor/templates/tezor/invoice/full.html
with
16 additions
and
17 deletions
aleksis/apps/tezor/templates/templated_email/invoice.email
+
12
−
17
View file @
84c58e4b
{% extends "templated_email/base.email" %}
{% load i18n %}
{% block subject %}{% trans "Invoice" %} {{ invoice }}{% endblock %}
{% block subject
_content
%}{% trans "Invoice" %} {{ invoice
.number
}}{% endblock %}
{% block
plain
%}
{% blocktrans with invoice=invoice %}
Please find attached
invoice
number
{{ invoice.transaction_id }} for {{
invoice.description }} please carefully read the PDF file concerning all
payment details.
{% block
html_content
%}
<p>
{% blocktrans with number=
invoice
.
number
description=invoice.description %}
Please find attached invoice number {{ number }} for {{ description }}.
Please carefully read the PDF file concerning all
payment details.
{% endblocktrans %}
{% endblock %}
{% block html %}
</p>
{% if invoice.status == "waiting" %}
<p>
{% blocktrans with invoice=invoice %}
Please find attached invoice number {{ invoice.transaction_id }} for {{
invoice.description }} please carefully read the PDF file concerning all
payment details.
{% blocktrans %}
Please visit the following link to view and make the payment:
{% endblocktrans %}
</p>
<a href="{{ BASE_URL }}{{ invoice.get_absolute_url }}">{{ BASE_URL }}{{ invoice.get_absolute_url}}</a>
{% endif %}
{% endblock %}
This diff is collapsed.
Click to expand it.
aleksis/apps/tezor/templates/tezor/invoice/full.html
+
4
−
0
View file @
84c58e4b
...
...
@@ -12,6 +12,7 @@
{% 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.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>
...
...
@@ -21,6 +22,9 @@
{% if can_print_invoice %}
<a
class=
"btn colour-primary waves-effect waves-light"
href=
"{% url 'print_invoice' object.token %}"
>
{% trans "Print" %}
</a>
{% 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"
>
{% if can_view_billing_information %}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment