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
19
pages/admin/table/index.html
Normal file
19
pages/admin/table/index.html
Normal file
|
@ -0,0 +1,19 @@
|
|||
<script>
|
||||
let Rows = new GetJson("/api/admin/table/")
|
||||
console.log("Rows", Rows)
|
||||
</script>
|
||||
|
||||
<blockstart>
|
||||
<h1>Admin Rows</h1>
|
||||
|
||||
<block x-data="Rows">
|
||||
<ul>
|
||||
<template x-for="item in theData">
|
||||
<li><a x-bind:href="'/admin/table/' + item + '/'">
|
||||
<span x-text="item"></span>
|
||||
</a></li>
|
||||
</template>
|
||||
</ul>
|
||||
</block>
|
||||
|
||||
</blockstart>
|
Loading…
Add table
Add a link
Reference in a new issue