numerus/web/template/products/search.gohtml

15 lines
527 B
Plaintext
Raw Normal View History

{{ define "content" }}
{{- /*gotype: []dev.tandem.ws/tandem/numerus/pkg.ProductEntry*/ -}}
{{- range $product := . }}
<li
id="product-option-{{ .Slug }}"
data-hx-get="{{ companyURI "/invoices/product-form" }}?slug={{ .Slug }}"
data-hx-target="closest fieldset"
data-hx-swap="outerHTML"
data-hx-trigger="click"
>{{ .Name }}</li>
{{ else }}
<li>{{( gettext "No products found." )}}</li>
{{- end }}
{{- end }}