From 11ee04400835e278c18224b38fe4abf4e6baff39 Mon Sep 17 00:00:00 2001 From: Benni Baermann Date: Wed, 13 Jan 2021 15:29:56 +0100 Subject: [PATCH] data preview step working (still without actual data preview) --- evapp/forms.py | 4 ++-- evapp/templates/evapp/employee_form.html | 5 ----- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/evapp/forms.py b/evapp/forms.py index ee775b5..2f73f54 100644 --- a/evapp/forms.py +++ b/evapp/forms.py @@ -10,10 +10,10 @@ from .models import Employee # widgets = {'firstdate_employment': DateInput(attrs={'type': 'date'}), # 'firstdate_presence': DateInput(attrs={'type': 'date'}),} -class DummyForm(Form): +class DummyForm(ModelForm): class Meta: model = Employee - fields = '__all__' + fields = [] class FdbForm(ModelForm): '''this base class provides the required css class for all forms''' diff --git a/evapp/templates/evapp/employee_form.html b/evapp/templates/evapp/employee_form.html index 6f0677a..e11b076 100644 --- a/evapp/templates/evapp/employee_form.html +++ b/evapp/templates/evapp/employee_form.html @@ -45,11 +45,7 @@ {% endif %}

-{% if wizard.steps.step1 == 5 %} -Hier könnten ihre Daten stehen. - -{% else %}
{% csrf_token %} @@ -69,7 +65,6 @@ Hier könnten ihre Daten stehen.

* Pflichtfeld

-{% endif %} {% if wizard.steps.prev %} {% endif %}