udemy-go-web-2/cmd/web/templates/all-subscriptions.page.gohtml

30 lines
547 B
Plaintext
Raw Normal View History

2024-08-21 19:49:08 +00:00
{{template "base" .}}
{{define "title"}}
All Subscriptions
{{end}}
{{define "content"}}
<h2 class="mt-5">All Subscriptions</h2>
<hr>
2024-08-21 21:27:33 +00:00
<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>
2024-08-21 19:49:08 +00:00
{{end}}
{{define "js"}}
2024-08-21 21:27:33 +00:00
<script type="module">
import {showTable} from "/static/js/all-sales.js"
showTable({{.API}});
</script>
2024-08-21 19:49:08 +00:00
{{end}}