From 3f92e323bf487ce0fcc0d35dd5d1e7a17cad2cce Mon Sep 17 00:00:00 2001
From: Benni Baermann
Date: Tue, 2 Feb 2021 12:21:14 +0100
Subject: [PATCH] minor changes in the CHANGE process
---
evapp/templates/evapp/employee_form.html | 2 +-
evapp/views.py | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/evapp/templates/evapp/employee_form.html b/evapp/templates/evapp/employee_form.html
index 8f03661..6ec00b7 100644
--- a/evapp/templates/evapp/employee_form.html
+++ b/evapp/templates/evapp/employee_form.html
@@ -45,7 +45,7 @@
{% endif %}
- {% if wizard.steps.step1 == 5 or choice == 'CHANGE' %}
+ {% if wizard.steps.step1 == 5 or choice == 'CHANGE' and wizards.steps.step1 == 3 %}
{% for key, value in data.items %}
{{ key }}: {{ value }}
{% endfor %}
diff --git a/evapp/views.py b/evapp/views.py
index 7fe8fbb..08643d5 100644
--- a/evapp/views.py
+++ b/evapp/views.py
@@ -74,6 +74,7 @@ class EvaFormView(CookieWizardView):
if choice == 'CHANGE':
print("process choosen: CHANGE")
form = ChangeForm(data)
+ # self.form_list = [PersonalForm, ChangeForm, DummyForm,]
elif choice == 'OUT':
print("process choosen: OUT")
form = WorkingForm(data)