{{ define "title" -}} {{( pgettext "New Invoice" "title" )}} {{- end }} {{ define "content" }} {{- /*gotype: dev.tandem.ws/tandem/numerus/pkg.invoiceForm*/ -}} {{( pgettext "Home" "title" )}} / {{( pgettext "Invoices" "title" )}} / {{( pgettext "New Invoice" "title" )}} {{(pgettext "New Invoice" "title")}} {{ csrfToken }} {{ with .Form -}} {{ template "select-field" .Customer }} {{ template "input-field" .Number }} {{ template "input-field" .Date }} {{ template "input-field" .Notes }} {{ template "select-field" .PaymentMethod }} {{- range $product := .Products }} {{ 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 }} {{- end }} {{(pgettext "Subtotal" "title")}} {{ .Subtotal | formatPrice }} {{- range $tax := .Taxes }} {{ index . 0 }} {{ index . 1 | formatPrice }} {{- end }} {{(pgettext "Total" "title")}} {{ .Total | formatPrice }} {{( pgettext "Add products" "action" )}} {{( pgettext "Update" "action" )}} {{( pgettext "New invoice" "action" )}} {{- end }}
{{( pgettext "Home" "title" )}} / {{( pgettext "Invoices" "title" )}} / {{( pgettext "New Invoice" "title" )}}