all subscriptions

This commit is contained in:
2024-08-21 23:27:33 +02:00
parent f8ee76939e
commit 8fb1844dcd
6 changed files with 84 additions and 5 deletions

View File

@ -1,6 +1,6 @@
{{ template "base" . }}
{{ define "title" }}
All Subscriptions
All Sales
{{ end }}
{{ define "content" }}
<h2 class="mt-5">All Sales</h2>

View File

@ -7,7 +7,23 @@ All Subscriptions
{{define "content"}}
<h2 class="mt-5">All Subscriptions</h2>
<hr>
<table id="subscriptions-table" class="table table-striped">
<thead>
<tr>
<th>Transaction</th>
<th>Customer</th>
<th>Product</th>
<th>Amount</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
{{end}}
{{define "js"}}
<script type="module">
import {showTable} from "/static/js/all-sales.js"
showTable({{.API}});
</script>
{{end}}