Mostly done now, search works.

This commit is contained in:
Zed A. Shaw 2025-07-28 03:30:34 -04:00
parent 51b18823ae
commit c29077aa4c
4 changed files with 72 additions and 12 deletions

View file

@ -10,8 +10,7 @@
<button type="button"><a href="/admin/new/table/{{ .Table }}/">New</a></button>
<button type="button" @click="page -= 1">Prev</button>
<button type="button" @click="page += 1">Next</button>
<input type="text" name="search" size="35" placeholder="Search" />
<button type="button">Search</button>
<input type="text" x-model.debounce="search_query" name="search" size="40" placeholder="Search" />
</block>
<table>
<tr>
@ -20,7 +19,7 @@
<th x-text="header"></th>
</template>
</tr>
<template x-for="item in contents">
<template x-for="item in contents" :key="item.id">
<tr>
<td>
<a x-bind:href="'/admin/table/{{ .Table }}/' + item.id + '/'">