{{ define "title" -}} {{- /*gotype: dev.tandem.ws/tandem/numerus/pkg.editExpensePage*/ -}} {{ printf ( pgettext "Edit Expense ā%sā" "title" ) (or .Form.InvoiceNumber.Value .Slug) }} {{- end }} {{ define "breadcrumbs" -}} {{- /*gotype: dev.tandem.ws/tandem/numerus/pkg.editExpensePage*/ -}} {{( pgettext "Home" "title" )}} / {{( pgettext "Expenses" "title" )}} / {{ or .Form.InvoiceNumber.Value .Slug }} {{- end }} {{ define "content" }} {{- /*gotype: dev.tandem.ws/tandem/numerus/pkg.editExpensePage*/ -}} {{ template "title" . }} {{ csrfToken }} {{ with .Form -}} {{ template "select-field" .Invoicer }} {{ template "input-field" .InvoiceNumber }} {{ template "input-field" .InvoiceDate }} {{ template "input-field" .Amount }} {{ template "select-field" .Tax }} {{ template "tags-field" .Tags }} {{ template "file-field" .File }} {{- end }} {{- range $tax := .Taxes }} {{ index . 0 }} {{ index . 1 | formatPrice }} {{- end }} {{(pgettext "Total" "title")}} {{ .Total | formatPrice }} {{( pgettext "Update" "action" )}} {{( pgettext "Save" "action" )}} {{- end }}
{{( pgettext "Home" "title" )}} / {{( pgettext "Expenses" "title" )}} / {{ or .Form.InvoiceNumber.Value .Slug }}