From 3a3b7f25cbed4a7b2c2b09cbe75dfe0e52e9aef6 Mon Sep 17 00:00:00 2001
From: Benni Baermann
Date: Thu, 14 Jan 2021 12:44:04 +0100
Subject: [PATCH] fixed context data in last step
---
evapp/templates/evapp/dataloop.txt | 1 +
evapp/templates/evapp/employee_form.html | 6 +++++-
evapp/views.py | 18 +++++++++++++-----
3 files changed, 19 insertions(+), 6 deletions(-)
diff --git a/evapp/templates/evapp/dataloop.txt b/evapp/templates/evapp/dataloop.txt
index a47b40e..6f016a4 100644
--- a/evapp/templates/evapp/dataloop.txt
+++ b/evapp/templates/evapp/dataloop.txt
@@ -1,3 +1,4 @@
+dataloop
{% for key, value in data.items %}
{{ key }}: {{ value }}
{% endfor %}
diff --git a/evapp/templates/evapp/employee_form.html b/evapp/templates/evapp/employee_form.html
index e11b076..3ec09f9 100644
--- a/evapp/templates/evapp/employee_form.html
+++ b/evapp/templates/evapp/employee_form.html
@@ -45,7 +45,11 @@
{% endif %}
-
+ {% if wizard.steps.step1 == 5 %}
+ {% for key, value in data.items %}
+ {{ key }}: {{ value }}
+ {% endfor %}
+ {% endif %}