data preview step working (still without actual data preview)
This commit is contained in:
parent
f7dc98b10c
commit
11ee044008
|
@ -10,10 +10,10 @@ from .models import Employee
|
||||||
# widgets = {'firstdate_employment': DateInput(attrs={'type': 'date'}),
|
# widgets = {'firstdate_employment': DateInput(attrs={'type': 'date'}),
|
||||||
# 'firstdate_presence': DateInput(attrs={'type': 'date'}),}
|
# 'firstdate_presence': DateInput(attrs={'type': 'date'}),}
|
||||||
|
|
||||||
class DummyForm(Form):
|
class DummyForm(ModelForm):
|
||||||
class Meta:
|
class Meta:
|
||||||
model = Employee
|
model = Employee
|
||||||
fields = '__all__'
|
fields = []
|
||||||
|
|
||||||
class FdbForm(ModelForm):
|
class FdbForm(ModelForm):
|
||||||
'''this base class provides the required css class for all forms'''
|
'''this base class provides the required css class for all forms'''
|
||||||
|
|
|
@ -45,11 +45,7 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</p>
|
</p>
|
||||||
</h2>
|
</h2>
|
||||||
{% if wizard.steps.step1 == 5 %}
|
|
||||||
|
|
||||||
Hier könnten ihre Daten stehen.
|
|
||||||
|
|
||||||
{% else %}
|
|
||||||
<form action="" method="post">
|
<form action="" method="post">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<table>
|
<table>
|
||||||
|
@ -69,7 +65,6 @@ Hier könnten ihre Daten stehen.
|
||||||
<p>
|
<p>
|
||||||
<span style="color: red">*</span> Pflichtfeld
|
<span style="color: red">*</span> Pflichtfeld
|
||||||
<p>
|
<p>
|
||||||
{% endif %}
|
|
||||||
{% if wizard.steps.prev %}
|
{% if wizard.steps.prev %}
|
||||||
<button formnovalidate="formnovalidate" name="wizard_goto_step" type="submit" value="{{ wizard.steps.prev }}">Zurück</button>
|
<button formnovalidate="formnovalidate" name="wizard_goto_step" type="submit" value="{{ wizard.steps.prev }}">Zurück</button>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Reference in New Issue