first logic in mail template tested
This commit is contained in:
parent
ae82a26ba8
commit
8ad0f91c85
|
@ -1 +1,7 @@
|
||||||
hello {{realname}}
|
hello {{data.realname}}
|
||||||
|
<p>
|
||||||
|
{% if data.choice == 'IFG' %}
|
||||||
|
IFG detected
|
||||||
|
{% else %}
|
||||||
|
no IFG detected
|
||||||
|
{% endif %}
|
||||||
|
|
|
@ -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…
Reference in New Issue