Browse Source

choice nicely displayed

master
Benni Baermann 4 years ago
parent
commit
7a1fbcbc06
2 changed files with 5 additions and 2 deletions
  1. +4
    -1
      input/templates/input/extern.html
  2. +1
    -1
      input/views.py

+ 4
- 1
input/templates/input/extern.html 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 }}

+ 1
- 1
input/views.py 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):

Loading…
Cancel
Save