cosmetic template changes
This commit is contained in:
parent
82b137da5a
commit
ae051b2b48
|
@ -32,7 +32,6 @@
|
||||||
</h1>
|
</h1>
|
||||||
<h2>
|
<h2>
|
||||||
<p>Schritt {{ wizard.steps.step1 }} von {{ wizard.steps.count }}</p>
|
<p>Schritt {{ wizard.steps.step1 }} von {{ wizard.steps.count }}</p>
|
||||||
Choice: {{choice}} Datatable: {{datatable}}
|
|
||||||
<p>{% if wizard.steps.step1 == 1 %}
|
<p>{% if wizard.steps.step1 == 1 %}
|
||||||
Angaben zur Person {% endif %}
|
Angaben zur Person {% endif %}
|
||||||
{% if choice == 'IN' %}
|
{% if choice == 'IN' %}
|
||||||
|
@ -61,8 +60,8 @@
|
||||||
<form action="" method="post">
|
<form action="" method="post">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<table>
|
<table>
|
||||||
{% if choice %}
|
{% if wizard.steps.step1 > 1 %}
|
||||||
Du hast {{choice}} ausgewählt.
|
Du hast den Prozess "{{choice_string}}" ausgewählt.
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{{ wizard.management_form }}
|
{{ wizard.management_form }}
|
||||||
{% if wizard.form.forms %}
|
{% if wizard.form.forms %}
|
||||||
|
|
|
@ -65,7 +65,9 @@ class EvaFormView(CookieWizardView):
|
||||||
|
|
||||||
#print('GETCONTEXT')
|
#print('GETCONTEXT')
|
||||||
context = super().get_context_data(form=form, **kwargs)
|
context = super().get_context_data(form=form, **kwargs)
|
||||||
context.update({'choice': self.choice})
|
context.update({'choice': self.choice,
|
||||||
|
'choice_string': TYPE_CHOICES[self.choice]})
|
||||||
|
|
||||||
if (self.steps.step1 == 5 or (self.choice != 'IN' and self.steps.step1 == 3)):
|
if (self.steps.step1 == 5 or (self.choice != 'IN' and self.steps.step1 == 3)):
|
||||||
context.update({'data': self.beautify_data(self.get_all_cleaned_data()),
|
context.update({'data': self.beautify_data(self.get_all_cleaned_data()),
|
||||||
'datatable': True,})
|
'datatable': True,})
|
||||||
|
|
Loading…
Reference in New Issue