diff --git a/input/templates/input/ifg_volunteer_mail.txt b/input/templates/input/ifg_volunteer_mail.txt index 0ec22aa..0b5dad9 100644 --- a/input/templates/input/ifg_volunteer_mail.txt +++ b/input/templates/input/ifg_volunteer_mail.txt @@ -1 +1,7 @@ -hello {{realname}} +hello {{data.realname}} +
+{% if data.choice == 'IFG' %} + IFG detected +{% else %} + no IFG detected +{% endif %} diff --git a/input/views.py b/input/views.py index a4df71a..93d4e40 100644 --- a/input/views.py +++ b/input/views.py @@ -91,7 +91,7 @@ class ExternView(CookieWizardView): # we need to send the following mails here: # - mail with entered data to the Volunteer mail_template = get_template('input/ifg_volunteer_mail.txt') - context = { 'realname': data['realname'] } + context = { 'data': data } send_mail( 'form filled', mail_template.render(context),