udemy-go-web-2/cmd/web/templates/all-sales.page.gohtml
2024-08-23 10:04:06 +02:00

32 lines
674 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>
<th>Status</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<nav>
<ul id="paginator" class="pagination">
</ul>
</nav>
{{ end }}
{{ define "js" }}
<script type="module">
import {showTable, pageSize, currentPage} from "/static/js/all-sales.js"
showTable({{.API}}, pageSize, currentPage);
</script>
{{ end }}