all sales

This commit is contained in:
2024-08-21 23:18:51 +02:00
parent 21273c22cb
commit f8ee76939e
4 changed files with 85 additions and 11 deletions

View File

@ -1,14 +1,26 @@
{{template "base" .}}
{{define "title"}}
{{ template "base" . }}
{{ define "title" }}
All Subscriptions
{{end}}
{{define "content"}}
{{ end }}
{{ define "content" }}
<h2 class="mt-5">All Sales</h2>
<hr>
{{end}}
{{define "js"}}
{{end}}
<table id="sales-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 }}