choice nicely displayed
This commit is contained in:
parent
f375280b22
commit
7a1fbcbc06
|
@ -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 }}
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue