Have a few of the basic admin pages working after switching to the API+View pattern.
This commit is contained in:
parent
fa7f886a59
commit
2b40d6fdc3
9 changed files with 188 additions and 29 deletions
20
views/admin/table/contents.html
Normal file
20
views/admin/table/contents.html
Normal file
|
@ -0,0 +1,20 @@
|
|||
<script>
|
||||
let Tables = new GetJson("/api/admin/table/{{ .Table }}/")
|
||||
console.log("Tables", Tables)
|
||||
</script>
|
||||
|
||||
<blockstart>
|
||||
<h1>Admin Tables</h1>
|
||||
|
||||
<block x-data="Tables">
|
||||
<ul>
|
||||
<template x-for="item in theData">
|
||||
<table>
|
||||
<td><a x-bind:href="'/admin/table/{{ .Table }}/' + item.id + '/'" x-text="item.id"></td>
|
||||
<td x-text="item.Email"></td>
|
||||
</table>
|
||||
</template>
|
||||
</ul>
|
||||
</block>
|
||||
|
||||
</blockstart>
|
Loading…
Add table
Add a link
Reference in a new issue