Kleine Bugfixes und Aufräumarbeiten

This commit is contained in:
2023-10-28 10:52:06 +02:00
parent 34ef95ad76
commit 33cbf4b215
11 changed files with 165 additions and 128 deletions

View File

@ -1,21 +1,21 @@
{{ define "add-buttons" }}
{{define "add-buttons"}}
<div id="briefing-buttons">
<button type="button" hx-post="/new-participant/{{ .SessionID }}/" hx-target="#briefing-buttons" hx-swap="outerHTML">
<button type="button" hx-post="/new-participant/{{.SessionID}}/" hx-target="#briefing-buttons" hx-swap="outerHTML">
Neuer Teilnehmer
</button>
<button type="submit" hx-post="/submit-form/{{ .SessionID }}/" hx-target="#content" hx-swap="innerHTML">
<button type="submit" hx-post="/submit-form/{{.SessionID}}/" hx-target="#content" hx-swap="innerHTML">
Fertig
</button>
</div>
{{ end }}
{{end}}
{{ define "new" }}
{{ template "add-buttons" . }}
<p>{{ .Login }}</p>
{{ end }}
{{define "new"}}
{{template "add-buttons" .}}
<p>{{.Login}}</p>
{{end}}
{{ define "content" }}
{{define "content"}}
<form>
<div>
<label for="location">Ort</label>
@ -32,6 +32,6 @@
<input id="as-of" name="as-of" required type="date" />
</div>
{{ template "add-buttons" . }}
{{template "add-buttons" .}}
</form>
{{ end }}
{{end}}