27 lines
534 B
Plaintext
27 lines
534 B
Plaintext
{{ template "base" . }}
|
|
{{ define "title" }}
|
|
All Sales
|
|
{{ end }}
|
|
{{ define "content" }}
|
|
<h2 class="mt-5">All Sales</h2>
|
|
<hr>
|
|
<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 }}
|