Kleine Änderungen für Sessions
This commit is contained in:
@ -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 }}
|
||||
|
Reference in New Issue
Block a user