{{ define "title" -}} {{- /*gotype: dev.tandem.ws/tandem/camper/pkg/invoice.invoiceForm*/ -}} {{- if .Slug }} {{ printf ( pgettext "Edit Invoice ā€œ%sā€" "title" ) .Number }} {{- else -}} {{( pgettext "New Invoice" "title" )}} {{- end -}} {{- end }} {{ define "head" -}} {{- end }} {{ define "breadcrumb" -}}
  • {{( pgettext "Invoices" "title" )}}
  • {{- end }} {{ define "content" }} {{- /*gotype: dev.tandem.ws/tandem/camper/pkg/invoice.invoiceForm*/ -}}

    {{ template "title" . }}

    {{ CSRFInput }} {{ with .BookingID }}{{ end }} {{ with .RemovedProduct -}}

    {{printf (gettext "Product ā€œ%sā€ removed") .Name.Val }}

    {{ with .InvoiceProductId }}{{ end }} {{ with .ProductId }}{{ end }} {{ with .Name }}{{ end }} {{ with .Price }}{{ end }} {{ with .Quantity }}{{ end }} {{ with .Discount }}{{ end }} {{ with .Description }}{{ end }} {{ with .Tax }}{{ end }}
    {{- end }}
    {{ with .Date -}} {{- end }} {{ with .InvoiceStatus }} {{ if $.Slug -}} {{- else -}} {{- end }} {{- end }} {{ with .Notes -}} {{- end }}
    {{ template "contact.gohtml" .Customer }}

    {{( pgettext "Products" "title" )}}

    {{- range .Products }} {{ template "product-form.gohtml" . }} {{- end }} {{- range $tax := .Taxes }} {{- end }}
    {{(pgettext "Subtotal" "title")}} {{ .Subtotal | formatPrice }}
    {{ index . 0 }} {{ index . 1 | formatPrice }}
    {{(pgettext "Total" "title")}} {{ .Total | formatPrice }}
    {{- end }}