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

cosmetic template changes

This commit is contained in:
Benni Bärmann 2021-02-08 11:28:32 +01:00
parent 82b137da5a
commit ae051b2b48
2 changed files with 5 additions and 4 deletions

View File

@ -32,7 +32,6 @@
</h1>
<h2>
<p>Schritt {{ wizard.steps.step1 }} von {{ wizard.steps.count }}</p>
Choice: {{choice}} Datatable: {{datatable}}
<p>{% if wizard.steps.step1 == 1 %}
Angaben zur Person {% endif %}
{% if choice == 'IN' %}
@ -61,8 +60,8 @@
<form action="" method="post">
{% csrf_token %}
<table>
{% if choice %}
Du hast {{choice}} ausgewählt.
{% if wizard.steps.step1 > 1 %}
Du hast den Prozess "{{choice_string}}" ausgewählt.
{% endif %}
{{ wizard.management_form }}
{% if wizard.form.forms %}

View File

@ -65,7 +65,9 @@ class EvaFormView(CookieWizardView):
#print('GETCONTEXT')
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)):
context.update({'data': self.beautify_data(self.get_all_cleaned_data()),
'datatable': True,})