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