Sessions vollständig implementiert
This commit is contained in:
@ -7,12 +7,13 @@
|
||||
{{end}}
|
||||
|
||||
{{define "content"}}
|
||||
<p>{{.Incorrect}} Fehler</p>
|
||||
<p>{{.BriefingParticipant.NoIncorrect}} Fehler</p>
|
||||
{{if gt .BriefingParticipant.NoIncorrect 0}}
|
||||
<p>Bitte nachschulen lassen und anschließend wiederholen.</p>
|
||||
<button hx-post="/retry/{{.SessionID}}/{{.Login}}/" hx-target="#content" type="submit">Wiederholen</button>
|
||||
{{end}}
|
||||
{{range .Questions}}
|
||||
<p>{{.Text}}</p>
|
||||
{{template "answers" .}}
|
||||
{{end}}
|
||||
{{if gt .Incorrect 0}}
|
||||
<button hx-post="/retry/{{.SessionID}}/{{.Login}}/" hx-target="#content" type="submit">Wiederholen</button>
|
||||
{{end}}
|
||||
{{end}}
|
||||
|
Reference in New Issue
Block a user