Kleine Bugfixes und Aufräumarbeiten
This commit is contained in:
@ -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}}
|
||||
|
Reference in New Issue
Block a user