Die Bedeutung von Session und Briefing so angepasst, dass sie Sinn ergibt.
This commit is contained in:
@ -11,11 +11,11 @@
|
||||
|
||||
{{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/{{.BriefingID}}/" hx-target="#briefing-buttons" hx-swap="outerHTML">
|
||||
Neuer Teilnehmer
|
||||
</button>
|
||||
|
||||
<button type="submit" hx-post="/submit-form/{{.SessionID}}/" hx-target="#content">
|
||||
<button type="submit" hx-post="/submit-form/{{.BriefingID}}/" hx-target="#content">
|
||||
Weiter
|
||||
</button>
|
||||
</div>
|
||||
|
@ -20,7 +20,7 @@
|
||||
<label for="company-{{.Login}}">Firma</label>
|
||||
<input type="text" name="company-{{.Login}}" id="company-{{.Login}}" />
|
||||
|
||||
<button type="button" hx-post="/submit-participant/{{.SessionID}}/{{.Login}}/" hx-target="#content">
|
||||
<button type="button" hx-post="/submit-participant/{{.BriefingID}}/{{.Login}}/" hx-target="#content">
|
||||
Fertig
|
||||
</button>
|
||||
</form>
|
||||
|
@ -29,7 +29,7 @@
|
||||
<form>
|
||||
{{template "answers" .}}
|
||||
|
||||
<button hx-post="/submit-answer/{{.SessionID}}/{{.Login}}/{{.QuestionID}}/" hx-target="#content" type="submit">
|
||||
<button hx-post="/submit-answer/{{.BriefingID}}/{{.Login}}/{{.QuestionID}}/" hx-target="#content" type="submit">
|
||||
Weiter
|
||||
</button>
|
||||
</form>
|
||||
|
@ -28,7 +28,7 @@
|
||||
<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>
|
||||
<button hx-post="/retry/{{.BriefingID}}/{{.Login}}/" hx-target="#content" type="submit">Wiederholen</button>
|
||||
{{end}}
|
||||
{{range .Questions}}
|
||||
<p>{{.Text}}</p>
|
||||
|
@ -10,12 +10,12 @@
|
||||
-->
|
||||
|
||||
{{define "refresh"}}
|
||||
<button hx-post="/refresh-summary/{{.SessionID}}/{{.Login}}/" hx-target="#id-{{.Login}}"
|
||||
<button hx-post="/refresh-summary/{{.BriefingID}}/{{.Login}}/" hx-target="#id-{{.Login}}"
|
||||
type="button">Aktualisieren</button>
|
||||
{{end}}
|
||||
|
||||
{{define "retry"}}
|
||||
<button hx-post="/allow-retry/{{.SessionID}}/{{.Login}}/" hx-swap="delete" type="button">Wiederholen erlauben</button>
|
||||
<button hx-post="/allow-retry/{{.BriefingID}}/{{.Login}}/" hx-swap="delete" type="button">Wiederholen erlauben</button>
|
||||
{{end}}
|
||||
|
||||
{{define "participant"}}
|
||||
@ -40,7 +40,7 @@
|
||||
{{end}}
|
||||
|
||||
{{define "content"}}
|
||||
<button hx-post="/briefing-done/{{.SessionID}}/" hx-target="#content" type="button">Beenden</button>
|
||||
<button hx-post="/briefing-done/{{.BriefingID}}/" hx-target="#content" type="button">Beenden</button>
|
||||
{{range .ParticipantsData}}
|
||||
{{template "participant" .}}
|
||||
{{end}}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{{define "content"}}
|
||||
<video src="/static/test.mp4">Test</video>
|
||||
<button hx-post="/end-video/{{.SessionID}}/{{.Login}}/" hx-target="#content" type="button">
|
||||
<button hx-post="/end-video/{{.BriefingID}}/{{.Login}}/" hx-target="#content" type="button">
|
||||
Weiter
|
||||
</button>
|
||||
{{end}}
|
||||
|
Reference in New Issue
Block a user