Der Umstieg auf Sessions ist weitgehend geglückt
This commit is contained in:
@ -1,10 +1,10 @@
|
||||
{{ define "add-buttons" }}
|
||||
<div id="briefing-buttons">
|
||||
<button type="button" hx-post="/add-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>
|
||||
@ -17,28 +17,19 @@
|
||||
|
||||
{{ define "content" }}
|
||||
<form>
|
||||
<div id="instructor">
|
||||
<label for="instructor">Unterweiser</label>
|
||||
<select id="instructor" name="instructor">
|
||||
{{ range .Options }}
|
||||
<option value="{{ .ID }}">{{ .String }}</option>
|
||||
{{ end }}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div id="location">
|
||||
<div>
|
||||
<label for="location">Ort</label>
|
||||
<input type="text" name="location" id="location" />
|
||||
<input id="location" name="location" required type="text" />
|
||||
</div>
|
||||
|
||||
<div id="document-name">
|
||||
<label for="document-name">Dokument</label>
|
||||
<input type="text" name="document-name" id="document-name" />
|
||||
<div>
|
||||
<label for="document">Dokument</label>
|
||||
<input id="document" name="document" required type="text" />
|
||||
</div>
|
||||
|
||||
<div id="state">
|
||||
<div>
|
||||
<label for="as-of">Stand vom</label>
|
||||
<input type="date" name="as-of" id="as-of" />
|
||||
<input id="as-of" name="as-of" required type="date" />
|
||||
</div>
|
||||
|
||||
{{ template "add-buttons" . }}
|
||||
|
Reference in New Issue
Block a user