Browse Source

first logic in mail template tested

master
Benni Baermann 4 years ago
parent
commit
8ad0f91c85
2 changed files with 8 additions and 2 deletions
  1. +7
    -1
      input/templates/input/ifg_volunteer_mail.txt
  2. +1
    -1
      input/views.py

+ 7
- 1
input/templates/input/ifg_volunteer_mail.txt View File

@ -1 +1,7 @@
hello {{realname}}
hello {{data.realname}}
<p>
{% if data.choice == 'IFG' %}
IFG detected
{% else %}
no IFG detected
{% endif %}

+ 1
- 1
input/views.py View File

@ -91,7 +91,7 @@ class ExternView(CookieWizardView):
# we need to send the following mails here: # we need to send the following mails here:
# - mail with entered data to the Volunteer # - mail with entered data to the Volunteer
mail_template = get_template('input/ifg_volunteer_mail.txt') mail_template = get_template('input/ifg_volunteer_mail.txt')
context = { 'realname': data['realname'] }
context = { 'data': data }
send_mail( send_mail(
'form filled', 'form filled',
mail_template.render(context), mail_template.render(context),

Loading…
Cancel
Save