Kleine Bugfixes und Aufräumarbeiten
This commit is contained in:
@ -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}}
|
||||
|
Reference in New Issue
Block a user