{{ define "title" -}} {{( pgettext "Invoices" "title" )}} {{- end }} {{ define "breadcrumbs" -}} {{- /*gotype: dev.tandem.ws/tandem/numerus/pkg.InvoicesIndexPage*/ -}} {{- end }} {{ define "content" }} {{- /*gotype: dev.tandem.ws/tandem/numerus/pkg.InvoicesIndexPage*/ -}}
{{ with .Filters }} {{ template "select-field" .Customer }} {{ template "select-field" .InvoiceStatus }} {{ template "input-field" .FromDate }} {{ template "input-field" .ToDate }} {{ template "input-field" .InvoiceNumber }} {{ template "tags-field" .Tags | addTagsAttr (print `data-conditions="` .TagsCondition.Name `-field"`) }} {{ template "toggle-field" .TagsCondition }} {{ end }}
{{ if .Filters.HasValue }} {{( pgettext "Reset" "action" )}} {{ end }}
{{ with .Invoices }} {{- range $invoice := . }} {{ $title := .Number | printf (pgettext "Select invoice %v" "action") }} {{- $title = .Number | printf (pgettext "Download invoice %s" "action") -}} {{- end }} {{ else }} {{ end }} {{ if .Invoices }} {{ end }}
{{( pgettext "All" "invoice" )}} {{( pgettext "Date" "title" )}} {{( pgettext "Invoice Num." "title" )}} {{( pgettext "Customer" "title" )}} {{( pgettext "Status" "title" )}} {{( pgettext "Tags" "title" )}} {{( pgettext "Amount" "title" )}} {{( pgettext "Collections" "title" )}} {{( pgettext "Actions" "title" )}}
{{ .Date|formatDate }} {{ .Number }} {{ .CustomerName }} {{ .StatusLabel }} {{- range $index, $tag := .Tags }} {{- if gt $index 0 }}, {{ end -}} {{ . }} {{- end }} {{ .Total|formatPrice }}
{{( gettext "No invoices added yet." )}}
{{( gettext "Total" )}} {{ .TotalAmount|formatPrice }}
{{- end }}