38 lines
884 B
HTML
Raw Normal View History

2023-10-26 10:05:21 +02:00
{{ define "add-buttons" }}
<div id="briefing-buttons">
<button type="button" hx-post="/new-participant/{{ .SessionID }}/" hx-target="#briefing-buttons" hx-swap="outerHTML">
2023-10-26 10:05:21 +02:00
Neuer Teilnehmer
</button>
<button type="submit" hx-post="/submit-form/{{ .SessionID }}/" hx-target="#content" hx-swap="innerHTML">
2023-10-26 10:05:21 +02:00
Fertig
</button>
</div>
{{ end }}
{{ define "new" }}
2023-10-26 10:05:21 +02:00
{{ template "add-buttons" . }}
<p>{{ .Login }}</p>
{{ end }}
{{ define "content" }}
<form>
<div>
2023-10-20 16:33:00 +02:00
<label for="location">Ort</label>
<input id="location" name="location" required type="text" />
2023-10-20 16:33:00 +02:00
</div>
<div>
<label for="document">Dokument</label>
<input id="document" name="document" required type="text" />
</div>
<div>
2023-10-20 16:33:00 +02:00
<label for="as-of">Stand vom</label>
<input id="as-of" name="as-of" required type="date" />
</div>
2023-10-26 10:05:21 +02:00
{{ template "add-buttons" . }}
</form>
{{ end }}