choice nicely displayed
This commit is contained in:
parent
f375280b22
commit
7a1fbcbc06
2 changed files with 5 additions and 2 deletions
|
@ -28,11 +28,14 @@
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<img src="{% static 'input/logo.png' %}" />
|
<img src="{% static 'input/logo.png' %}" />
|
||||||
{{choice}}
|
|
||||||
<p>Schritt {{ wizard.steps.step1 }} von {{ wizard.steps.count }}</p>
|
<p>Schritt {{ wizard.steps.step1 }} von {{ wizard.steps.count }}</p>
|
||||||
<form action="" method="post">
|
<form action="" method="post">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<table>
|
<table>
|
||||||
|
{% if choice %}
|
||||||
|
Du hast {{choice}} ausgewählt.
|
||||||
|
{% endif %}
|
||||||
{{ wizard.management_form }}
|
{{ wizard.management_form }}
|
||||||
{% if wizard.form.forms %}
|
{% if wizard.form.forms %}
|
||||||
{{ wizard.form.management_form }}
|
{{ wizard.form.management_form }}
|
||||||
|
|
|
@ -150,7 +150,7 @@ class ExternView(CookieWizardView):
|
||||||
def get_context_data(self, **kwargs):
|
def get_context_data(self, **kwargs):
|
||||||
context = super().get_context_data(**kwargs)
|
context = super().get_context_data(**kwargs)
|
||||||
if hasattr(self, 'choice'):
|
if hasattr(self, 'choice'):
|
||||||
context["choice"] = self.choice
|
context["choice"] = TYPE_CHOICES[self.choice]
|
||||||
return context
|
return context
|
||||||
|
|
||||||
def done(self, form_list, **kwargs):
|
def done(self, form_list, **kwargs):
|
||||||
|
|
Loading…
Reference in a new issue