2023-10-08 10:36:16 +02:00
|
|
|
{{ define "rows" }}
|
|
|
|
{{ range . }}
|
2023-10-07 18:32:33 +02:00
|
|
|
<tr>
|
|
|
|
<td>{{ .FirstName }}</td>
|
|
|
|
<td>{{ .LastName }}</td>
|
|
|
|
<td>{{ .Date }}</td>
|
|
|
|
<td>{{ .Time }}</td>
|
|
|
|
<td>{{ .State }}</td>
|
|
|
|
<td>{{ .Location }}</td>
|
|
|
|
{{ range .Participants }}
|
|
|
|
<td>{{ .FirstName }}</td>
|
|
|
|
<td>{{ .LastName }}</td>
|
|
|
|
<td>{{ .Company }}</td>
|
|
|
|
{{ end }}
|
|
|
|
</tr>
|
|
|
|
{{ end }}
|
2023-10-08 10:36:16 +02:00
|
|
|
{{ end }}
|
2023-10-07 18:32:33 +02:00
|
|
|
|
|
|
|
{{ define "content" }}
|
|
|
|
<form>
|
|
|
|
<label for="search-input">Suche</label>
|
2023-10-08 11:01:57 +02:00
|
|
|
<input type="text" name="search" id="search-input" hx-post="/search/" hx-target="#results" hx-swap="innerHTML"
|
|
|
|
hx-trigger="keyup changed delay:200ms" />
|
2023-10-08 10:36:16 +02:00
|
|
|
</form>
|
|
|
|
|
|
|
|
<form>
|
|
|
|
<button type="submit" hx-post="/new-briefing/" hx-target="#content" hx-swap="innerHTML">
|
|
|
|
Neue Unterweisung
|
|
|
|
</button>
|
2023-10-07 18:32:33 +02:00
|
|
|
</form>
|
|
|
|
|
|
|
|
<table>
|
2023-10-08 10:36:16 +02:00
|
|
|
<thead>
|
|
|
|
<tr>
|
2023-10-08 15:12:52 +02:00
|
|
|
<th colspan="2">Unterweiser</th>
|
2023-10-08 10:36:16 +02:00
|
|
|
<th>Datum</th>
|
|
|
|
<th>Uhrzeit</th>
|
|
|
|
<th>Stand</th>
|
|
|
|
<th>Ort</th>
|
2023-10-08 15:12:52 +02:00
|
|
|
<th colspan="2">Teilnehmer</th>
|
2023-10-08 10:36:16 +02:00
|
|
|
<th>Firma</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
2023-10-07 18:32:33 +02:00
|
|
|
|
2023-10-08 10:36:16 +02:00
|
|
|
<tbody id="results">
|
|
|
|
{{ template "rows" . }}
|
|
|
|
</tbody>
|
2023-10-07 18:32:33 +02:00
|
|
|
</table>
|
|
|
|
{{ end }}
|