diff --git a/backend/donations/views/redirections.py b/backend/donations/views/redirections.py index ace55a6d8..530712dd9 100644 --- a/backend/donations/views/redirections.py +++ b/backend/donations/views/redirections.py @@ -294,7 +294,6 @@ def post(self, request, cause_slug): } ) - # TODO: add a text for two-year donations # send and email to the donor with a link to the PDF file if signature: if cause.notifications_email: diff --git a/backend/locale/en/LC_MESSAGES/django.po b/backend/locale/en/LC_MESSAGES/django.po index 05c7bfbb7..ea684be44 100644 --- a/backend/locale/en/LC_MESSAGES/django.po +++ b/backend/locale/en/LC_MESSAGES/django.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2026-04-09 15:31+0300\n" +"POT-Creation-Date: 2026-06-02 17:09+0300\n" "PO-Revision-Date: 2025-03-27 14:48+0000\n" "Last-Translator: Andrei Ioniță \n" "Language-Team: English \n" "Language-Team: Armenian \n" "Language-Team: Romanian + {% if donation_is_two_years %} +

+ {% blocktrans trimmed %} + Redirection duration: 2 years + {% endblocktrans %} +

+ {% else %} +

+ {% blocktrans trimmed %} + Redirection duration: 1 year + {% endblocktrans %} +

+ {% endif %} + + {% trans "Download form" as action_title %} {% include "emails/components/action.html" with title=action_title url=action_url %} +

+ {% blocktrans trimmed %} + The download link is valid for one year. + {% endblocktrans %} +

+ {% include "emails/components/extra-hand.html" %}

diff --git a/backend/templates/v2/emails/donor/redirection-with-signature/main.txt b/backend/templates/v2/emails/donor/redirection-with-signature/main.txt index 7834fccc9..e38c4113e 100644 --- a/backend/templates/v2/emails/donor/redirection-with-signature/main.txt +++ b/backend/templates/v2/emails/donor/redirection-with-signature/main.txt @@ -9,8 +9,23 @@ You can see the form you have filled in by clicking the button below. {% endblocktrans %} +{% if donation_is_two_years %} + {% blocktrans trimmed %} + Redirection duration: 2 years + {% endblocktrans %} +{% else %} + {% blocktrans trimmed %} + Redirection duration: 1 year + {% endblocktrans %} +{% endif %} + + {{ action_url }} +{% blocktrans trimmed %} + The download link is valid for one year. +{% endblocktrans %} + {% include "emails/components/extra-hand.txt" %} {% trans "Thank you for your involvement!" %} diff --git a/backend/templates/v2/emails/ngo/new-form-received/main.html b/backend/templates/v2/emails/ngo/new-form-received/main.html index 6e482a3ee..9c44ababb 100644 --- a/backend/templates/v2/emails/ngo/new-form-received/main.html +++ b/backend/templates/v2/emails/ngo/new-form-received/main.html @@ -19,4 +19,10 @@ {% trans "Download form" as action_title %} {% include "emails/components/action.html" with title=action_title url=action_url %} +

+ {% blocktrans trimmed %} + The download link is valid for one year. + {% endblocktrans %} +

+ {% endblock %} diff --git a/backend/templates/v2/emails/ngo/new-form-received/main.txt b/backend/templates/v2/emails/ngo/new-form-received/main.txt index 7bd3cc566..6ddaf7874 100644 --- a/backend/templates/v2/emails/ngo/new-form-received/main.txt +++ b/backend/templates/v2/emails/ngo/new-form-received/main.txt @@ -9,3 +9,8 @@ {% endblocktrans %} {{ action_url }} + +{% blocktrans trimmed %} + The download link is valid for one year. +{% endblocktrans %} +