WMDE
/
eva
forked from tohe/eva
7
1
Fork 0

data preview step working (still without actual data preview)

This commit is contained in:
Benni Bärmann 2021-01-13 15:29:56 +01:00
parent f7dc98b10c
commit 11ee044008
2 changed files with 2 additions and 7 deletions

View File

@ -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'''

View File

@ -45,11 +45,7 @@
{% endif %}
</p>
</h2>
{% if wizard.steps.step1 == 5 %}
Hier könnten ihre Daten stehen.
{% else %}
<form action="" method="post">
{% csrf_token %}
<table>
@ -69,7 +65,6 @@ Hier könnten ihre Daten stehen.
<p>
<span style="color: red">*</span> Pflichtfeld
<p>
{% endif %}
{% if wizard.steps.prev %}
<button formnovalidate="formnovalidate" name="wizard_goto_step" type="submit" value="{{ wizard.steps.prev }}">Zurück</button>
{% endif %}