{{/* abono-plan-card — one plan at one interval: its name, the price that is sold for it, and a button to buy. A plan with nothing sold at Interval says so ("abono.plan.interval_unavailable") and offers no button, rather than quietly selling another interval. Prices that are no longer sold (legacy prices) are never shown, nor is a price billed other than every month or every year (Price.Unsupported). Keys: Offer abono.Offer, required Interval string, optional — "month" or "year". Empty shows every sold price, which is right for a plan with just one; with several the button cannot choose between them, so name one. Action string, required — where the buy form posts Code bool, optional — a promotion code field in the buy form L *ui.Localizer */}} {{define "abono-plan-card"}}{{$L := localizer $}}{{$iv := or (opt . "Interval") ""}}{{$found := false}}
{{template "abono-price" dict "L" $L "Price" .}}
{{end}}{{end}}{{end}}{{if $found}}{{template "abono-subscribe-button" dict "L" $L "Action" .Action "Plan" .Offer.Plan "Interval" $iv "Code" (opt . "Code")}}{{else}}{{T $L "abono.plan.interval_unavailable"}}
{{end}}