Updates und Bugfixes

This commit is contained in:
jbergner
2025-06-12 16:04:05 +02:00
parent a93e34a9f5
commit 8b6da48e8c
4 changed files with 147 additions and 33 deletions

View File

@@ -14,16 +14,16 @@
<div class="container">
<div id="bereich-a">
<div class="top">
<input type="text" name="search" placeholder="Suchfeld" autocomplete="false" hx-post="/htmx/contact" hx-trigger="keyup changed delay:500ms" hx-target="#z-1" hx-swap="outerHTML" />
<input type="text" name="search" placeholder="Amt" autocomplete="false" hx-post="/htmx/department" hx-trigger="keyup changed delay:500ms" hx-target="#z-1" hx-swap="outerHTML" />
<input type="text" name="search" placeholder="Raum" autocomplete="false" hx-post="/htmx/room" hx-trigger="keyup changed delay:500ms" hx-target="#z-1" hx-swap="outerHTML" />
<input type="text" name="search" placeholder="Gebäude" autocomplete="false" hx-post="/htmx/location" hx-trigger="keyup changed delay:500ms" hx-target="#z-1" hx-swap="outerHTML" />
<input type="text" name="search" placeholder="Suchfeld" autocomplete="false" hx-post="/htmx/contact" hx-trigger="keyup changed delay:200ms" hx-target="#z-1" hx-swap="outerHTML" />
<input type="text" name="search" placeholder="Amt" autocomplete="false" hx-post="/htmx/department" hx-trigger="keyup changed delay:200ms" hx-target="#z-1" hx-swap="outerHTML" />
<input type="text" name="search" placeholder="Raum" autocomplete="false" hx-post="/htmx/room" hx-trigger="keyup changed delay:200ms" hx-target="#z-1" hx-swap="outerHTML" />
<input type="text" name="search" placeholder="Gebäude" autocomplete="false" hx-post="/htmx/location" hx-trigger="keyup changed delay:200ms" hx-target="#z-1" hx-swap="outerHTML" />
</div>
{{ template "kontakt" . }}
</div>
<div id="bereich-b">
<div class="top">
<input type="text" placeholder="Stichwort" />
<input type="text" name="search" placeholder="Stichwort" hx-post="/htmx/keyword" hx-trigger="keyup changed delay:200ms" hx-target="#z-2" hx-swap="outerHTML" />
</div>
{{ template "schlagwort" . }}
</div>

View File

@@ -23,14 +23,14 @@
</thead>
<tbody>
{{ range .Contacts }}
<tr>
<tr hx-post="/htmx/keywordbycontact" hx-trigger="click delay:200ms" hx-target="#z-2" hx-swap="outerHTML" hx-vals='{"cid": "{{ .Id }}"}'>
<td>{{ if .DisplayName }}{{ .DisplayName }}{{ end }}</td>
<td>{{ if .Phone }}{{ .Phone }}{{ end }}</td>
<td>{{ if .Mobile }}{{ .Mobile }}{{ end }}</td>
<td>{{ if .Homeoffice }}{{ .Homeoffice }}{{ end }}</td>
<td>{{ if .DepartmentId.Valid }}{{ .DepartmentId.Int64 }}{{ end }}</td>
<td>{{ if .DepartmentId }}{{ .DepartmentId }}{{ end }}</td>
<td>{{ if .Room }}{{ .Room }}{{ end }}</td>
<td>{{ if .LocationId.Valid }}{{ .LocationId.Int64 }}{{ end }}</td>
<td>{{ if .LocationId }}{{ .LocationId }}{{ end }}</td>
</tr>
{{ end }}
</tbody>