mirror of
https://codeberg.org/angestoepselt/homepage.git
synced 2025-05-24 14:46:16 +00:00
Enable the CoderDojo registration form
This commit is contained in:
parent
303c31b04c
commit
b135f829f0
2 changed files with 16 additions and 4 deletions
|
|
@ -223,6 +223,16 @@ match request_uri:
|
|||
form_group = "csw-Hardwarespenden"
|
||||
ticket_details["Gerätedetails"] = get_form_value("device")
|
||||
|
||||
# This is only available on the CoderDojo site and will be blocked on the
|
||||
# server side in other cases.
|
||||
case "/anmelden":
|
||||
form_name = "CoderDojo-Anmeldung"
|
||||
form_group = "CoderDojo"
|
||||
ticket_details["Anmelde-Typ"] = get_form_value("mode")
|
||||
ticket_details["Teilnehmenden-Name"] = get_form_value("participantname", "-")
|
||||
ticket_details["Telefonnummer"] = get_form_value("contactphone")
|
||||
ticket_details["Fotos?"] = get_form_value("photos")
|
||||
|
||||
case _:
|
||||
# This case should never actually happen because lighttpd filters out
|
||||
# requests accordingly.
|
||||
|
|
|
|||
|
|
@ -30,14 +30,16 @@ Hier findest du schon mal die Details zur kommenden Veranstaltung:
|
|||
|
||||
<form method="post" action="/anmelden">
|
||||
|
||||
<input type="hidden" name="veranstaltung" value="11. März 2023" />
|
||||
|
||||
Zunächst müssen wir ein paar Formalitäten klären.
|
||||
Wen möchtest du anmelden?
|
||||
|
||||
<input type="radio" id="mode-self" class="radio-input" name="mode" required value="self" />
|
||||
<input type="radio" id="mode-self" class="radio-input" name="mode" required value="Selbstanmeldung" />
|
||||
<div class="form-input">
|
||||
<label for="mode-self">Ich bin über 14 Jahre alt und möchte mich selbst anmelden.</label>
|
||||
</div>
|
||||
<input type="radio" id="mode-child" class="radio-input" name="mode" required value="child" />
|
||||
<input type="radio" id="mode-child" class="radio-input" name="mode" required value="Stellvertretend" />
|
||||
<div class="form-input">
|
||||
<label for="mode-child">Ich bin Erziehungsberechtigte / -r und möchte mein Kind anmelden.</label>
|
||||
</div>
|
||||
|
|
@ -70,14 +72,14 @@ Bitte gebe außerdem eine E-Mail-Adresse an, an die wir Informationen zur Verans
|
|||
Während der Veranstaltungen werden möglicherweise Fotos gemacht und von uns online auf unserer [Homepage](/rueckblick){target="_blank"} (aber nicht in sozialen Netzwerken) zur Verfügung gestellt.
|
||||
Bist du damit einverstanden?
|
||||
|
||||
<input type="radio" id="photos-yes" class="radio-input" name="photos" required value="yes" />
|
||||
<input type="radio" id="photos-yes" class="radio-input" name="photos" required value="Ja" />
|
||||
<div class="form-input">
|
||||
<label for="photos-yes">
|
||||
Ja<span data-mode="self">, es dürfen Fotos von mir gemacht werden</span><span data-mode="child">, mein Kind darf fotografiert werden</span>.
|
||||
Die Fotos werden möglicherweise online in einer Galerie gezeigt.
|
||||
</label>
|
||||
</div>
|
||||
<input type="radio" id="photos-no" class="radio-input" name="photos" required value="no" />
|
||||
<input type="radio" id="photos-no" class="radio-input" name="photos" required value="Nein" />
|
||||
<div class="form-input">
|
||||
<label for="photos-no">
|
||||
Nein<span data-mode="self">, ich möchte nicht fotografiert werden</span><span data-mode="child">, mein Kind soll bei den Fotos ausgelassen werden</span>.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue