All the pages are working again, but Alpine is insanely frustrating.

This commit is contained in:
Zed A. Shaw 2025-08-02 13:56:39 -04:00
parent 81cf5e0d93
commit 7125bc2d2a
15 changed files with 95 additions and 40 deletions

View file

@ -1,5 +1,5 @@
<script>
let thePage = new PaginateTable("/api/admin/table/{{ .Table }}/");
let thePage = new PaginateTable("/api/admin/table/{{ .Table }}");
</script>
<blockstart>

View file

@ -1,5 +1,5 @@
<script>
let Data = new PaginateTable("/api/admin/table/")
let Data = new PaginateTable("/api/admin/table")
</script>
<blockstart>

View file

@ -1,12 +1,12 @@
<script>
let Data = new GetJson("/api/admin/new/table/{{ .Table }}/");
let Data = new GetJson("/api/admin/new/table/{{ .Table }}");
</script>
<blockstart>
<h1><a href="/admin/table/{{ .Table }}/">&laquo;</a>Admin {{ .Table }}</h1>
<block x-data="Data">
<form method="POST" action="/api/admin/new/table/{{ .Table }}/">
<form method="POST" action="/api/admin/new/table/{{ .Table }}">
<card>
<top><h2>New {{ .Table }}</h2></top>
<middle>

View file

@ -1,5 +1,5 @@
<script>
let Data = new GetJson("/api/admin/table/{{ .Table }}/{{ .Id }}/");
let Data = new GetJson("/api/admin/table/{{ .Table }}/{{ .Id }}");
</script>
<blockstart>