Fix the form, again

This commit is contained in:
Yannik Rödel 2023-04-28 08:58:15 +02:00
parent 77b6fbfb98
commit d988bc42d9
2 changed files with 5 additions and 5 deletions

View file

@ -16,6 +16,7 @@ callout: "Hinweis: Wir können aktuell nur Anfragen für Desktop Computer und No
Auf dieser Seite kannst du einen Antrag einreichen, um einen Computer von uns zu
erhalten. Bitte teile uns zunächst deine Kontaktdaten mit.
<form method="post" action="/computer-beantragen/privat" enctype="multipart/form-data">
<label class="form-input">
<span>Name:</span>
<input type="text" name="contactname" required placeholder="Vorname Nachname" />
@ -36,7 +37,7 @@ Welches Gerät würdest du gerne von uns erhalten?
<div class="form-input">
<label for="hardware-bare-laptop">Laptop ohne Akku</label>
</div>
<form class="blanked-out-form" method="post" action="/computer-beantragen/privat" enctype="multipart/form-data">
<fieldset disabled="disabled" class="blanked-out-form">
<input type="radio" id="hardware-laptop" class="radio-input" name="hardware" required disabled value="Laptop" />
<div class="form-input">
<label for="hardware-laptop">
@ -44,7 +45,7 @@ Welches Gerät würdest du gerne von uns erhalten?
<em>Aktuell nicht verfügbar | Voraussichtlich erst wieder ab Juni</em>
</label>
</div>
</form>
</fieldset>
Damit du einen Computer von uns erhalten kannst, benötigen wir von dir einen
Nachweis der Bedürftigkeit. Das ist eines dieser Papiere, die von offiziellen
@ -115,5 +116,4 @@ installiert. Es gibt ein Programm zum Schreiben
<div class="form-submit">
<input type="submit" value="Abschicken" />
</div>
</form>

View file

@ -39,7 +39,7 @@ $HTTP["request-method"] =~ "GET|POST" {
"^/spenden" => "/cgi-bin/form.py",
"^/mitmachen" => "/cgi-bin/form.py",
"^/computer-beantragen/organisation" => "/cgi-bin/form.py",
#"^/computer-beantragen/privat" => "/cgi-bin/form.py",
"^/computer-beantragen/privat" => "/cgi-bin/form.py",
"^/hardware-spenden/organisation" => "/cgi-bin/form.py",
# Note the actual POST endpoint is /hardware-spenden/privat/laptop, but the
# form is served from /hardware-spenden/privat.