2023-10-28 08:01:34 +02:00
|
|
|
{{define "answers"}}
|
|
|
|
{{range .Answers}}
|
|
|
|
<p class="{{if and .Chosen .Correct}} correct {{else if and .Chosen (not .Correct)}} incorrect {{end}}">
|
|
|
|
{{.Text}}
|
|
|
|
</p>
|
|
|
|
{{end}}
|
|
|
|
{{end}}
|
2023-10-16 18:51:52 +02:00
|
|
|
|
2023-10-28 08:01:34 +02:00
|
|
|
{{define "content"}}
|
2023-10-30 11:38:56 +01:00
|
|
|
<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}}
|
2023-10-28 08:01:34 +02:00
|
|
|
{{range .Questions}}
|
|
|
|
<p>{{.Text}}</p>
|
|
|
|
{{template "answers" .}}
|
|
|
|
{{end}}
|
|
|
|
{{end}}
|