{{ define "title" -}} {{- /*gotype: dev.tandem.ws/tandem/numerus/pkg.PaymentMethodsPage*/ -}} {{( pgettext "Payment 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 "Payment Method" "title" )}} {{( pgettext "Instructions" "title" )}} {{ $confirm := ( gettext "Are you sure?" )}} {{ with .PaymentMethods }} {{- range $method := . }} {{ .Name }} {{ .Instructions }} {{ csrfToken }} {{ deleteMethod }} {{- end }} {{ else }} {{( gettext "No payment methods added yet." )}} {{ end }} {{ if gt (len .PaymentMethods) 1 -}} {{ csrfToken }} {{ putMethod }} {{ if .UpdateDefaultError -}} {{ .UpdateDefaultError}} {{- end }} {{( pgettext "Set" "action")}} {{- end }} {{( pgettext "New Payment Method" "title")}} {{ csrfToken }} {{ with .Form -}} {{ template "input-field" .Name }} {{ template "input-field" .Instructions }} {{- end }} {{- end }}
{{( pgettext "Home" "title" )}} / {{ template "title" . }}
{{ .UpdateDefaultError}}