{{ 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*/ -}} {{- end }} {{ define "content" }} {{- /*gotype: dev.tandem.ws/tandem/numerus/pkg.PaymentMethodsPage*/ -}}

{{ template "title" . }}

{{ $confirm := ( gettext "Are you sure?" )}} {{ with .PaymentMethods }} {{- range $method := . }} {{- end }} {{ else }} {{ end }} {{ if gt (len .PaymentMethods) 1 -}} {{- end }}
{{( pgettext "Default" "title" )}} {{( pgettext "Payment Method" "title" )}} {{( pgettext "Instructions" "title" )}}
{{ .Name }} {{ .Instructions }}
{{ csrfToken }} {{ deleteMethod }}
{{( gettext "No payment methods added yet." )}}
{{ csrfToken }} {{ putMethod }} {{ if .UpdateDefaultError -}}

{{ .UpdateDefaultError}}

{{- end }}

{{( pgettext "New Payment Method" "title")}}

{{ csrfToken }} {{ with .Form -}} {{ template "input-field" .Name }} {{ template "input-field" .Instructions }} {{- end }}
{{- end }}