From 7a1fbcbc0609b4a102f8cf2780d8226e8c55702b Mon Sep 17 00:00:00 2001 From: Benni Baermann Date: Wed, 18 Nov 2020 15:19:42 +0100 Subject: [PATCH] choice nicely displayed --- input/templates/input/extern.html | 5 ++++- input/views.py | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/input/templates/input/extern.html b/input/templates/input/extern.html index 6d34447..30faa8a 100644 --- a/input/templates/input/extern.html +++ b/input/templates/input/extern.html @@ -28,11 +28,14 @@ - {{choice}} +

Schritt {{ wizard.steps.step1 }} von {{ wizard.steps.count }}

{% csrf_token %} +{% if choice %} +Du hast {{choice}} ausgewählt. +{% endif %} {{ wizard.management_form }} {% if wizard.form.forms %} {{ wizard.form.management_form }} diff --git a/input/views.py b/input/views.py index 9017cd7..67dab8d 100644 --- a/input/views.py +++ b/input/views.py @@ -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):