{{ define "title" -}} {{( pgettext "Add Products to Invoice" "title" )}} {{- end }} {{ define "content" }} {{- /*gotype: dev.tandem.ws/tandem/numerus/pkg.newInvoiceProductsPage*/ -}} {{( pgettext "Home" "title" )}} / {{( pgettext "Invoices" "title" )}} / {{( pgettext "New Invoice" "title" )}} {{(pgettext "Add Products to Invoice" "title")}} {{ csrfToken }} {{- with .Form }} {{ template "hidden-select-field" .Customer }} {{ template "hidden-field" .Number }} {{ template "hidden-field" .Date }} {{ template "hidden-field" .Notes }} {{- range $product := .Products }} {{ 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" )}} / {{( pgettext "New Invoice" "title" )}}