{{ $context := . }} {{ range $context.Products }} {{ if ne $context.EditId .ID }} {{ else }} {{ end }} {{ end }} {{ if eq $context.EditId 0 }} {{ end }}
Id Name Description Category Price
{{ .ID }} {{ .Name }} {{ .Description }} {{ .CategoryName }} {{ printf "$%.2f" .Price }}
{{ handler "Categories" "GetSelect" .Category.ID }}
Add New Product
- {{ handler "Categories" "GetSelect" 0 }}