49 lines
1.0 KiB
HTML
Raw Permalink Normal View History

2023-10-28 10:52:06 +02:00
{{define "rows"}}
{{range .OTD}}
<tr>
2023-10-28 10:52:06 +02:00
<td>{{.InstructorFirstName}}</td>
<td>{{.InstructorLastName}}</td>
<td>{{.BriefingDate}}</td>
<td>{{.BriefingTime}}</td>
<td>{{.BriefingLocation}}</td>
<td>{{.BriefingDocumentName}}</td>
<td>{{.BriefingAsOf}}</td>
<td>{{.ParticipantFirstName}}</td>
<td>{{.ParticipantLastName}}</td>
<td>{{.ParticipantCompany}}</td>
</tr>
2023-10-28 10:52:06 +02:00
{{end}}
{{end}}
2023-10-28 10:52:06 +02:00
{{define "content"}}
<form>
<label for="search-input">Suche</label>
2023-10-30 11:38:56 +01:00
<input type="text" name="search" id="search-input" hx-post="/search/{{.SessionID}}/" hx-target="#results">
</form>
<form>
2023-10-30 11:38:56 +01:00
<button type="submit" hx-post="/new-briefing/{{.SessionID}}/" hx-target="#content">
Neue Unterweisung
</button>
</form>
<table>
<thead>
<tr>
2023-10-08 15:12:52 +02:00
<th colspan="2">Unterweiser</th>
<th>Datum</th>
<th>Uhrzeit</th>
<th>Ort</th>
<th>Dokument</th>
<th>Stand</th>
2023-10-08 15:12:52 +02:00
<th colspan="2">Teilnehmer</th>
<th>Firma</th>
</tr>
</thead>
<tbody id="results">
2023-10-28 10:52:06 +02:00
{{template "rows" .}}
</tbody>
</table>
2023-10-28 10:52:06 +02:00
{{end}}