Finally got an input form. :-)
This commit is contained in:
parent
9bd85aba7a
commit
cd0df727cc
@ -8,8 +8,8 @@
|
||||
<h2>Voucher-Überprüfung</h2>
|
||||
<form method="post">
|
||||
{% csrf_token %}
|
||||
{{ form.as_p }}
|
||||
<button type="submit">Login</button>
|
||||
{{ voucher_form.as_p }}
|
||||
<button type="submit">Überprüfen</button>
|
||||
</form>
|
||||
|
||||
{% endblock maincontent %}
|
@ -21,7 +21,8 @@ class VoucherVerify(View):
|
||||
fields = ['code']
|
||||
|
||||
def get(self, request, *args, **kwargs):
|
||||
return render(request, 'voucher-verify.html')
|
||||
voucher_form = VoucherVerifyForm()
|
||||
return render(request, 'voucher-verify.html', {'voucher_form': voucher_form})
|
||||
|
||||
class SignUpView(CreateView):
|
||||
form_class = ExplorerCreationForm
|
||||
|
Loading…
Reference in New Issue
Block a user