Added updated RSVP-form

This commit is contained in:
spetznas
2026-05-16 22:22:24 +02:00
parent b7ad462786
commit 838dabccca
11 changed files with 293 additions and 49 deletions
+49 -13
View File
@@ -139,20 +139,56 @@ body {
</div>
{{ end }}
<!-- RSVP -->
<div class="section rsvp">
<h2>📝 {{ i18n "rsvp_title" }}</h2>
{{ with .Params.rsvp.deadline }}
<p>{{ i18n "rsvp_deadline" }} <strong>{{ . }}</strong>.</p>
{{ end }}
{{ with .Params.rsvp.email }}
<p>{{ i18n "rsvp_email" }}: <a href="mailto:{{ . }}">{{ . }}</a></p>
{{ end }}
{{ with .Params.rsvp.form }}
<p><a href="{{ . }}" target="_blank">{{ i18n "rsvp_form" }}</a></p>
{{ end }}
</div>
<!-- <!-1- RSVP -1-> -->
<!-- <div class="section rsvp"> -->
<!-- <h2>📝 {{ i18n "rsvp_title" }}</h2> -->
<!-- {{ with .Params.rsvp.deadline }} -->
<!-- <p>{{ i18n "rsvp_deadline" }} <strong>{{ . }}</strong>.</p> -->
<!-- {{ end }} -->
<!-- {{ with .Params.rsvp.email }} -->
<!-- <p>{{ i18n "rsvp_email" }}: <a href="mailto:{{ . }}">{{ . }}</a></p> -->
<!-- {{ end }} -->
<!-- {{ with .Params.rsvp.form }} -->
<!-- <p><a href="{{ . }}" target="_blank">{{ i18n "rsvp_form" }}</a></p> -->
<!-- {{ end }} -->
<!-- </div> -->
<!-- RSVP -->
<div class="section rsvp">
<h2>📝 {{ i18n "rsvp_title" }}</h2>
{{ with .Params.rsvp.deadline }}
<p>{{ i18n "rsvp_deadline" }} <strong>{{ . }}</strong>.</p>
{{ end }}
<!-- RSVP Form -->
<form action="/rsvp-submit.php" method="POST">
<label for="first_name">{{ i18n "rsvp_firstname" }}:</label><br>
<input type="text" id="first_name" name="first_name" required><br><br>
<label for="last_name">{{ i18n "rsvp_lastname" }}:</label><br>
<input type="text" id="last_name" name="last_name" required><br><br>
<label>{{ i18n "rsvp_drinks" }}:</label><br>
<input type="checkbox" id="wine" name="drinks[]" value="Wine">
<label for="wine">{{ i18n "rsvp_drinks_wine" }}</label><br>
<input type="checkbox" id="beer" name="drinks[]" value="Beer">
<label for="beer">{{ i18n "rsvp_drinks_beer" }}</label><br>
<input type="checkbox" id="juice" name="drinks[]" value="Juice">
<label for="juice">{{ i18n "rsvp_drinks_juice" }}</label><br><br>
<label for="allergies">{{ i18n "rsvp_allergies" }}:</label><br>
<input type="text" id="allergies" name="allergies"><br><br>
<!-- optional but recommended: helps prevent spam bots -->
<input type="text" name="website" style="display:none">
<button type="submit">{{ i18n "rsvp_send" }}</button>
</form>
</div>
<!-- Extra Info -->
{{ with .Params.details }}
<div class="section">