{{ define "title" -}} {{- /*gotype: dev.tandem.ws/tandem/numerus/pkg.expensesIndexPage*/ -}} {{( pgettext "Expenses" "title" )}} {{- end }} {{ define "breadcrumbs" -}} {{- /*gotype: dev.tandem.ws/tandem/numerus/pkg.expensesIndexPage*/ -}} {{- end }} {{ define "content" }} {{- /*gotype: dev.tandem.ws/tandem/numerus/pkg.expensesIndexPage*/ -}}
{{ with .Filters }} {{ template "select-field" .Contact }} {{ template "select-field" .ExpenseStatus }} {{ 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 .Expenses }} {{- range $expense := . }} {{- end }} {{ else }} {{ end }} {{ if .Expenses }} {{ end }}
{{( pgettext "Contact" "title" )}} {{( pgettext "Invoice Date" "title" )}} {{( pgettext "Invoice Number" "title" )}} {{( pgettext "Status" "title" )}} {{( pgettext "Tags" "title" )}} {{( pgettext "Amount" "title" )}} {{( pgettext "Download" "title" )}} {{( pgettext "Actions" "title" )}}
{{ .InvoicerName }} {{ .InvoiceDate|formatDate }} {{ .InvoiceNumber }} {{- range $index, $tag := .Tags }} {{- if gt $index 0 }}, {{ end -}} {{ . }} {{- end }} {{ .Amount | formatPrice }} {{ if .OriginalFileName }} {{ end }}
{{( gettext "No expenses added yet." )}}
{{( gettext "Total" )}} {{ .TotalAmount|formatPrice }}
{{- end }}