context setup and trimmed "anmeldung"
This commit is contained in:
parent
99068f64a3
commit
061486f3ea
@ -5,30 +5,8 @@
|
|||||||
|
|
||||||
<section class="dc-container dc-padding">
|
<section class="dc-container dc-padding">
|
||||||
<h1 class="dc-xxlarge dc-center">Anmeldung</h1>
|
<h1 class="dc-xxlarge dc-center">Anmeldung</h1>
|
||||||
<div class="dc-container dc-padding dc-deep-purple">
|
<div class="dc-container dc-padding">
|
||||||
<div class="dc-container dc-half dc-deep-purple dc-round-small dc-medium">
|
<div class="dc-container dc-round-small">
|
||||||
<h2 class="dc-center dc-xlarge dc-text-white">Essensanmeldung</h2>
|
|
||||||
<form action="" style="margin:auto" class="dc-container dc-form" method="post">
|
|
||||||
{% csrf_token %}
|
|
||||||
<input type="hidden" name="form_type" value="essen">
|
|
||||||
{{ essen_form.non_field_errors }}
|
|
||||||
<div class="dc-container">
|
|
||||||
{{ essen_form.name.errors }}
|
|
||||||
<label class="dc-half" for="{{ essen_form.name.id_for_label }}">Name:</label>
|
|
||||||
<div class="dc-half">{{ essen_form.name }}</div></div>
|
|
||||||
<div class="dc-container dc-padding-top">
|
|
||||||
{{ essen_form.mail.errors }}
|
|
||||||
<label class="dc-half" for="{{ essen_form.mail.id_for_label }}">Mail-Adresse:</label>
|
|
||||||
<div class="dc-half">{{essen_form.mail }}</div></div>
|
|
||||||
<div class="dc-container dc-padding-top">
|
|
||||||
{{ essen_form.auswahl.errors }}
|
|
||||||
<label class="dc-half" for="{{ essen_form.auswahl.id_for_label }}">Ort der Aufführung:</label>
|
|
||||||
<div style="padding-bottom:7px" class="dc-half">{{essen_form.auswahl }}</div></div>
|
|
||||||
<input style="width:100%" class="dc-deep-purple dc-padding-small dc-border-small dc-button dc-border-white" type="submit" value="Senden">
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
<div class="dc-container dc-half dc-deep-purple dc-round-small">
|
|
||||||
<h2 class="dc-center dc-xlarge dc-text-white">Sitzplatzreservierung</h2>
|
|
||||||
<form action="" style="margin:auto" class="dc-container dc-form" method="post">
|
<form action="" style="margin:auto" class="dc-container dc-form" method="post">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<input type="hidden" name="form_type" value="reservierung">
|
<input type="hidden" name="form_type" value="reservierung">
|
||||||
@ -54,10 +32,10 @@
|
|||||||
<label class="dc-half" for="{{ reservierung_form.anzahl_l.id_for_label }}">Anzahl Sitzplätze Lübeck (max. 7):</label>
|
<label class="dc-half" for="{{ reservierung_form.anzahl_l.id_for_label }}">Anzahl Sitzplätze Lübeck (max. 7):</label>
|
||||||
<div style="padding-bottom:7px" class="dc-half">{{reservierung_form.anzahl_l }}</div></div>
|
<div style="padding-bottom:7px" class="dc-half">{{reservierung_form.anzahl_l }}</div></div>
|
||||||
|
|
||||||
<input style="width:100%" class="dc-deep-purple dc-padding-small dc-border-small dc-button dc-border-white" type="submit" value="Senden">
|
<input style="width:100%" class="dc-padding-small dc-border-small dc-button dc-border-white" type="submit" value="Senden">
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<div class="dc-padding dc-deep-purple">
|
<div class="dc-padding ">
|
||||||
<h2 class="dc-large dc-text-white dc-center">Hinweise</h2>
|
<h2 class="dc-large dc-text-white dc-center">Hinweise</h2>
|
||||||
<ol class="dc-medium">
|
<ol class="dc-medium">
|
||||||
<li></li>
|
<li></li>
|
||||||
|
@ -66,3 +66,4 @@ class Registrant(models.Model):
|
|||||||
|
|
||||||
timestamp = models.DateTimeField(auto_now_add=True)
|
timestamp = models.DateTimeField(auto_now_add=True)
|
||||||
payed = models.BooleanField()
|
payed = models.BooleanField()
|
||||||
|
slug = models.SlugField()
|
||||||
|
@ -74,4 +74,5 @@ def impressum(request):
|
|||||||
return render(request, 'impressum.html')
|
return render(request, 'impressum.html')
|
||||||
|
|
||||||
def anmeldung(request):
|
def anmeldung(request):
|
||||||
pass
|
context = {}
|
||||||
|
return render(request, 'anmeldung.html', context)
|
||||||
|
Loading…
Reference in New Issue
Block a user