Mostly done now, search works.
This commit is contained in:
parent
51b18823ae
commit
c29077aa4c
4 changed files with 72 additions and 12 deletions
|
@ -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 + '/'">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue