Files
inventory-plus-plus/templates/pages/accounts/{acctID.int64}/shops/mock.html.tmpl
T

24 lines
494 B
Cheetah

{{- .Auth.ByMatchingAccountID 2 }}
{{- define "title" }} Inventory++ Mock Shops {{ end }}
{{- $acctID := .Identity.Account.AccountID }}
<section
id="mock-shops-section"
class="
m-[1rem]
pb-[1rem]
"
>
<ul class="list-none" hx-swap="morph">
{{- range $i, $platform := .Accounts.GetOrderOfPlatformsOnAccountPage $acctID }}
{{ component (printf "/accounts/%d/platforms/%s/shops/list-item" $acctID $platform)
"OrderIndex" $i
"Mock" true
}}
{{- end }}
</ul>
</section>