From 0e3bd8fd4c4787c8a4d1b04142f3a4f3db29ef39 Mon Sep 17 00:00:00 2001 From: Fredrik Jonsson <frjo@xdeb.org> Date: Tue, 2 Oct 2018 11:06:47 +0200 Subject: [PATCH] Add all feedback fields to the determination e-mail. --- .../templates/messages/email/determination.html | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/opentech/apply/activity/templates/messages/email/determination.html b/opentech/apply/activity/templates/messages/email/determination.html index ea4f1b343..221aaa0df 100644 --- a/opentech/apply/activity/templates/messages/email/determination.html +++ b/opentech/apply/activity/templates/messages/email/determination.html @@ -6,7 +6,15 @@ {% block content %} Your application has been reviewed and the outcome is: {{ determination.clean_outcome }} -{{ determination.message|bleach }} +{{ determination.message|bleach|striptags }} -Read the complete determination here: {{ request.scheme }}://{{ request.get_host }}{{ determination.get_absolute_url }} +{% for group in determination.detailed_data.values %} +{{ group.title }} +{% for question, answer in group.questions %} +{% if answer %}{{ question }}: +{{ answer|bleach|striptags }}{% endif %} +{% endfor %} +{% endfor %} + +Read the determination here: {{ request.scheme }}://{{ request.get_host }}{{ determination.get_absolute_url }} {% endblock %} -- GitLab