choice nicely displayed

This commit is contained in:
Benni Bärmann 2020-11-18 15:19:42 +01:00
parent f375280b22
commit 7a1fbcbc06
2 changed files with 5 additions and 2 deletions

View File

@ -28,11 +28,14 @@
</style>
<img src="{% static 'input/logo.png' %}" />
{{choice}}
<p>Schritt {{ wizard.steps.step1 }} von {{ wizard.steps.count }}</p>
<form action="" method="post">
{% csrf_token %}
<table>
{% if choice %}
Du hast {{choice}} ausgewählt.
{% endif %}
{{ wizard.management_form }}
{% if wizard.form.forms %}
{{ wizard.form.management_form }}

View File

@ -150,7 +150,7 @@ class ExternView(CookieWizardView):
def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
if hasattr(self, 'choice'):
context["choice"] = self.choice
context["choice"] = TYPE_CHOICES[self.choice]
return context
def done(self, form_list, **kwargs):