{{ define "hidden-field" -}} {{- /*gotype: dev.tandem.ws/tandem/numerus/pkg.InputField*/ -}} {{- end }} {{ define "input-field" -}} {{- /*gotype: dev.tandem.ws/tandem/numerus/pkg.InputField*/ -}}
{{ if eq .Type "textarea" }} {{ else }} {{ end }} {{- if .Errors }} {{- end }}
{{- end }} {{ define "file-field" -}} {{- /*gotype: dev.tandem.ws/tandem/numerus/pkg.FileField*/ -}}
{{- if .Errors }} {{- end }}
{{- end }} {{ define "tags-field" -}} {{- /*gotype: dev.tandem.ws/tandem/numerus/pkg.InputField*/ -}}
{{- if .Errors }} {{- end }}
{{- end }} {{ define "hidden-select-field" -}} {{- /*gotype: dev.tandem.ws/tandem/numerus/pkg.SelectField*/ -}} {{- range $selected := .Selected }} {{- end }} {{- end }} {{ define "select-field" -}} {{- /*gotype: dev.tandem.ws/tandem/numerus/pkg.SelectField*/ -}}
{{- if .Errors }} {{- end }}
{{- end }} {{ define "toggle-field" -}} {{- /*gotype: dev.tandem.ws/tandem/numerus/pkg.ToggleField*/ -}}
{{ .Label }}
{{- end }} {{ define "invoice-product-form" -}} {{- /*gotype: dev.tandem.ws/tandem/numerus/pkg.invoiceProductForm*/ -}}
{{ template "hidden-field" .InvoiceProductId }} {{ template "hidden-field" .ProductId }} {{ template "input-field" .Name }} {{ template "input-field" .Price }} {{ template "input-field" .Quantity }} {{ template "input-field" .Discount }} {{ template "input-field" .Description }} {{ template "select-field" .Tax }}
{{- end }}