Skip to content

Commit

Permalink
Merge pull request #317 from jandd/feature/add-contact-address-to-spo…
Browse files Browse the repository at this point in the history
…nsoring-request-mail

Add contact_email to sponsoring request email
  • Loading branch information
jandd authored Mar 31, 2023
2 parents b2275c5 + bc21170 commit 1fc28f4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
11 changes: 8 additions & 3 deletions devday/sponsoring/locale/de/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-12-09 09:23+0100\n"
"PO-Revision-Date: 2022-12-09 09:57+0100\n"
"POT-Creation-Date: 2023-03-29 11:42+0200\n"
"PO-Revision-Date: 2023-03-29 11:44+0200\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: de\n"
Expand Down Expand Up @@ -136,7 +136,7 @@ msgstr ""
"%(organization)s schrieb die folgende Anfrage:\n"

#: sponsoring/templates/sponsoring/sponsoring_request_mail_body.txt:10
msgid "The requester is interested in the following sponsoring oportunity:"
msgid "The requester is interested in the following sponsoring opportunity:"
msgid_plural ""
"The requester is interested in the following sponsoring oportunities:"
msgstr[0] ""
Expand All @@ -146,6 +146,11 @@ msgstr[1] ""

#: sponsoring/templates/sponsoring/sponsoring_request_mail_body.txt:14
#, python-format
msgid "The requester would like to be contacted at %(contact_email)s."
msgstr "Der Anfragende hat %(contact_email)s als Kontaktadresse angegeben."

#: sponsoring/templates/sponsoring/sponsoring_request_mail_body.txt:16
#, python-format
msgid ""
"\n"
"Sent from %(scheme)s://%(domain)s%(path)s\n"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@ the following sponsoring request for {{ event }} has been sent from the Website.

{{ body_text }}

{% blocktrans count counter=packages|length %}The requester is interested in the following sponsoring oportunity:{% plural %}The requester is interested in the following sponsoring oportunities:{% endblocktrans %}
{% blocktrans count counter=packages|length %}The requester is interested in the following sponsoring opportunity:{% plural %}The requester is interested in the following sponsoring oportunities:{% endblocktrans %}

{{ packages|join:", " }}

{% blocktrans %}The requester would like to be contacted at {{ contact_email }}.{% endblocktrans %}

-- {% blocktrans with domain=site.domain host=request.META.HTTP_HOST scheme=request.scheme remote=request.META.REMOTE_ADDR path=request.path %}
Sent from {{ scheme }}://{{ domain }}{{ path }}
Remote {{ remote }}
Expand Down
1 change: 1 addition & 0 deletions devday/sponsoring/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ def test_post_redirects_and_sends_mail_on_form_valid(self):
self.assertIn(organization, message.subject)
self.assertIn(organization, message.body)
self.assertIn(body_text, message.body)
self.assertIn(email, message.body)
self.assertEqual(message.reply_to, [email])


Expand Down

0 comments on commit 1fc28f4

Please sign in to comment.