{{ define "title" -}} {{- /*gotype: dev.tandem.ws/tandem/numerus/pkg.PaymentMethodsPage*/ -}} {{( pgettext "Invoicing Methods" "title" )}} {{- end }} {{ define "breadcrumbs" -}} {{- /*gotype: dev.tandem.ws/tandem/numerus/pkg.PaymentMethodsPage*/ -}} {{( pgettext "Home" "title" )}} / {{ template "title" . }} {{- end }} {{ define "content" }} {{- /*gotype: dev.tandem.ws/tandem/numerus/pkg.PaymentMethodsPage*/ -}} {{ template "title" . }} {{( pgettext "Default" "title" )}} {{( pgettext "Invoicing Method" "title" )}} {{( pgettext "Instructions" "title" )}} {{ with .PaymentMethods }} {{- range . }} {{- block "row" . }} {{ $confirm := ( gettext "Are you sure?" )}} {{ .Name }} {{ .Instructions }} {{ csrfToken }} {{ deleteMethod }} {{- end }} {{- end }} {{ else }} {{( gettext "No invoicing methods added yet." )}} {{ end }} {{ if gt (len .PaymentMethods) 1 -}} {{ csrfToken }} {{ putMethod }} {{ if .UpdateDefaultError -}} {{ .UpdateDefaultError}} {{- end }} {{( pgettext "Set" "action")}} {{- end }} {{( pgettext "New Invoicing Method" "title")}} {{ csrfToken }} {{ with .Form -}} {{ template "input-field" .Name }} {{ template "input-field" .Instructions }} {{- end }} {{- end }}
{{( pgettext "Home" "title" )}} / {{ template "title" . }}
{{ .UpdateDefaultError}}