Kleine Änderungen für Sessions

This commit is contained in:
2023-10-26 10:05:21 +02:00
parent d054b3644b
commit aded71394d
2 changed files with 54 additions and 31 deletions

View File

@ -1,12 +1,18 @@
{{ define "add-button" }}
<button type="button" hx-post="/add-participant/" hx-target="this" hx-swap="outerHTML">
Neuer Teilnehmer
</button>
{{ define "add-buttons" }}
<div id="briefing-buttons">
<button type="button" hx-post="/add-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">
Fertig
</button>
</div>
{{ end }}
{{ define "new" }}
<span>{{ . }}</span>
{{ template "add-button" . }}
{{ template "add-buttons" . }}
<p>{{ .Login }}</p>
{{ end }}
{{ define "content" }}
@ -35,10 +41,6 @@
<input type="date" name="as-of" id="as-of" />
</div>
{{ template "add-button" . }}
<button type="submit" hx-post="/submit-form-{{ .SessionID }}/" hx-target="#content" hx-swap="innerHTML">
OK
</button>
{{ template "add-buttons" . }}
</form>
{{ end }}