{{ define "title" -}} {{( pgettext "Add Products to Invoice" "title" )}} {{- end }} {{ define "breadcrumbs" -}} {{- /*gotype: dev.tandem.ws/tandem/numerus/pkg.newInvoiceProductsPage*/ -}} {{( pgettext "Home" "title" )}} / {{( pgettext "Invoices" "title" )}} / {{ if eq .Form.Number "" }} {{( pgettext "New Invoice" "title" )}} {{ else }} {{ .Form.Number }} {{ end }} {{- end }} {{ define "content" }} {{- /*gotype: dev.tandem.ws/tandem/numerus/pkg.newInvoiceProductsPage*/ -}} {{(pgettext "Add Products to Invoice" "title")}} {{ csrfToken }} {{- with .Form }} {{ template "hidden-field" .Location }} {{ template "hidden-select-field" .Customer }} {{ template "hidden-field" .Date }} {{ template "hidden-field" .Notes }} {{ template "hidden-field" .Tags }} {{- range $product := .Products }} {{ template "hidden-field" .InvoiceProductId }} {{ template "hidden-field" .ProductId }} {{ template "hidden-field" .Name }} {{ template "hidden-field" .Description }} {{ template "hidden-field" .Price }} {{ template "hidden-field" .Quantity }} {{ template "hidden-field" .Discount }} {{ template "hidden-select-field" .Tax }} {{- end }} {{- end }} {{( pgettext "All" "product" )}} {{( pgettext "Name" "title" )}} {{( pgettext "Price" "title" )}} {{ with .Products }} {{- range $product, $key := . }} {{ .Name }} {{ .Price | formatPrice }} {{- end }} {{ else }} {{( gettext "No products added yet." )}} {{ end }} {{( pgettext "Add products" "action" )}} {{- end }}
{{( pgettext "Home" "title" )}} / {{( pgettext "Invoices" "title" )}} / {{ if eq .Form.Number "" }} {{( pgettext "New Invoice" "title" )}} {{ else }} {{ .Form.Number }} {{ end }}