{{ define "title" -}} {{ printf ( pgettext "Edit Invoice ā%sā" "title" ) .Number }} {{- end }} {{ define "breadcrumbs" -}} {{- /*gotype: dev.tandem.ws/tandem/numerus/pkg.editInvoicePage*/ -}} {{( pgettext "Home" "title" )}} / {{( pgettext "Invoices" "title" )}} / {{ .Number }} {{- end }} {{ define "content" }} {{- /*gotype: dev.tandem.ws/tandem/numerus/pkg.editInvoicePage*/ -}} {{ printf (pgettext "Edit Invoice ā%sā" "title") .Number }} {{ csrfToken }} {{ with .Form -}} {{ template "hidden-field" .Location }} {{ template "select-field" .Customer }} {{ template "hidden-field" .Date }} {{ template "tags-field" .Tags }} {{ template "select-field" .PaymentMethod }} {{ template "select-field" .InvoiceStatus }} {{ template "input-field" .Notes }} {{- range $product := .Products }} {{ 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 }} {{- 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 "Edit invoice" "action" )}} {{- end }}
{{( pgettext "Home" "title" )}} / {{( pgettext "Invoices" "title" )}} / {{ .Number }}