Kleine Bugfixes und Aufräumarbeiten

This commit is contained in:
2023-10-28 10:52:06 +02:00
parent 34ef95ad76
commit 33cbf4b215
11 changed files with 165 additions and 128 deletions

View File

@ -1,29 +1,28 @@
{{ define "rows" }}
{{ range . }}
{{define "rows"}}
{{range .OTD}}
<tr>
<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>
<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>
{{ end }}
{{ end }}
{{end}}
{{end}}
{{ define "content" }}
{{define "content"}}
<form>
<label for="search-input">Suche</label>
<input type="text" name="search" id="search-input" hx-post="/search/" hx-target="#results" hx-swap="innerHTML"
hx-trigger="keyup changed delay:200ms" />
<input type="text" name="search" id="search-input" hx-post="/search/" hx-target="#results">
</form>
<form>
<button type="submit" hx-post="/new-briefing/" hx-target="#content" hx-swap="innerHTML">
<button type="submit" hx-post="/new-briefing/{{.SessionID}}" hx-target="#content">
Neue Unterweisung
</button>
</form>
@ -43,7 +42,7 @@
</thead>
<tbody id="results">
{{ template "rows" . }}
{{template "rows" .}}
</tbody>
</table>
{{ end }}
{{end}}