From 78f4e1767e8283addb905b303831b177eaa62f9a Mon Sep 17 00:00:00 2001 From: PCoder <purple.coder@yahoo.co.uk> Date: Thu, 13 Jun 2019 05:18:47 +0200 Subject: [PATCH] Add invoice_failed email templates --- .../emails/invoice_failed.html | 44 +++++++++++++++++++ .../datacenterlight/emails/invoice_failed.txt | 11 +++++ 2 files changed, 55 insertions(+) create mode 100644 datacenterlight/templates/datacenterlight/emails/invoice_failed.html create mode 100644 datacenterlight/templates/datacenterlight/emails/invoice_failed.txt diff --git a/datacenterlight/templates/datacenterlight/emails/invoice_failed.html b/datacenterlight/templates/datacenterlight/emails/invoice_failed.html new file mode 100644 index 00000000..7f973c88 --- /dev/null +++ b/datacenterlight/templates/datacenterlight/emails/invoice_failed.html @@ -0,0 +1,44 @@ +{% load static i18n %} +<!DOCTYPE html> +<html> + +<head> + <meta charset="UTF-8"> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>{% trans "Data Center Light VM payment failed" %}</title> + <link rel="shortcut icon" href="{{ base_url }}{% static 'datacenterlight/img/favicon.ico' %}" type="image/x-icon"> + <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lato:300,400"> +</head> + +<body style="margin: 0; padding: 20px 0;"> + <table style="width: 100%; border-spacing: 0; border-collapse: collapse; max-width: 560px;"> + <tr> + <td> + <img src="{{ base_url }}{% static 'datacenterlight/img/datacenterlight.png' %}" style="max-width: 200px;"> + </td> + </tr> + <tr> + <td style="padding-top: 15px;"> + <h1 style="font-family: Lato, Arial, sans-serif; font-size: 25px; font-weight: 400; margin: 0;">{% trans "Data Center Light VM payment failed" %}</h1> + </td> + </tr> + <tr> + <td style="padding-top: 25px; font-size: 16px;"> + <p style="line-height: 1.75; font-family: Lato, Arial, sans-serif; font-weight: 300; margin-bottom: 10px; margin-top: 0;"> +{% blocktrans %}Your invoice payment for the VM {{VM_ID}} failed.<br/><br/>Please ensure that your credit card is active and that you have sufficient credit.{% endblocktrans %}<br/><br/> + +{% blocktrans %}We will reattempt with your active payment source in the next {number_of_remaining_hours} hours. If this is not resolved by then, the VM and your subscription will be terminated and the VM can not be recovered back.{% endblocktrans %}<br/><br/> + +{% blocktrans %}Please reply to this email or write to us at support@datacenterlight.ch if you have any queries.{% endblocktrans %} + </p> + </td> + </tr> + <tr> + <td style="padding-top: 40px; padding-bottom: 25px;"> + <h3 style="font-family: Lato, Arial, sans-serif; margin: 0; font-weight: 400; font-size: 15px;">{% trans "Your Data Center Light Team" %}</h3> + </td> + </tr> + </table> +</body> + +</html> diff --git a/datacenterlight/templates/datacenterlight/emails/invoice_failed.txt b/datacenterlight/templates/datacenterlight/emails/invoice_failed.txt new file mode 100644 index 00000000..f1b5b1d6 --- /dev/null +++ b/datacenterlight/templates/datacenterlight/emails/invoice_failed.txt @@ -0,0 +1,11 @@ +{% load i18n %} + +{% trans "Data Center Light VM payment failed" %} + +{% blocktrans %}Your invoice payment for the VM {{VM_ID}} failed.<br/><br/>Please ensure that your credit card is active and that you have sufficient credit.{% endblocktrans %} + +{% blocktrans %}We will reattempt with your active payment source in the next {number_of_remaining_hours} hours. If this is not resolved by then, the VM and your subscription will be terminated and the VM can not be recovered back.{% endblocktrans %} + +{% blocktrans %}Please reply to this email or write to us at support@datacenterlight.ch if you have any queries.{% endblocktrans %} + +{% trans "Your Data Center Light Team" %} \ No newline at end of file