From 2b613b447f43b80594228c34c1762c89a89e722d Mon Sep 17 00:00:00 2001 From: Benni Baermann Date: Thu, 4 Feb 2021 09:24:54 +0100 Subject: [PATCH] template fixed for CHANGE-Process --- evapp/templates/evapp/employee_form.html | 23 ++++++++++++++++++----- evapp/urls.py | 1 + 2 files changed, 19 insertions(+), 5 deletions(-) diff --git a/evapp/templates/evapp/employee_form.html b/evapp/templates/evapp/employee_form.html index da8706a..5fcc724 100644 --- a/evapp/templates/evapp/employee_form.html +++ b/evapp/templates/evapp/employee_form.html @@ -33,16 +33,29 @@

Schritt {{ wizard.steps.step1 }} von {{ wizard.steps.count }}

{% if wizard.steps.step1 == 1 %} - Angaben zur Person - {% elif wizard.steps.step1 == 2 %} + Angaben zur Person {% endif %} +{% if choice == 'IN' %} + {% if wizard.steps.step1 == 2 %} Angaben zum neuen Arbeitsverhältnis - {% elif wizard.steps.step1 == 3 and choice == 'IN' %} + {% elif wizard.steps.step1 == 3 %} IT-relevante Angaben - {% elif wizard.steps.step1 == 4 and choice == 'IN' %} + {% elif wizard.steps.step1 == 4 %} Office-relevante Angaben - {% else %} + {% elif wizards.steps.step1 == 5 %} Bestätigungsschritt + {% else %} + Achtung! Unerkannter Schritt {% endif %} +{% else %} + {% if wizard.steps.step1 == 2 %} + Veränderungsrelevante Angaben + {% elif wizards.steps.step1 == 3 %} + Bestätigungsschritt + {% else %} + Achtung! Unerkannter Schritt + {% endif %} + +{% endif %}

{% if wizard.steps.step1 == 3 and choice == 'CHANGE' or wizards.steps.step1 == 6 %} diff --git a/evapp/urls.py b/evapp/urls.py index 45c9624..7d0a9d1 100644 --- a/evapp/urls.py +++ b/evapp/urls.py @@ -6,6 +6,7 @@ urlpatterns = [ path('', EvaFormView.as_view(condition_dict = {'1': long_process, '2': long_process, '3': long_process, + '4': change_process,}), name='evaform'), path('success', success, name='success')