from django import forms from vendor.zebra.forms import StripePaymentForm from django.utils.safestring import mark_safe PLANS = [ ("newsblur-premium-12", mark_safe("$12 / year ($1/month)")), ("newsblur-premium-24", mark_safe("$24 / year ($2/month)")), ("newsblur-premium-36", mark_safe("$36 / year ($3/month)")), ] class HorizRadioRenderer(forms.RadioSelect.renderer): """ this overrides widget method to put radio buttons horizontally instead of vertically. """ def render(self): """Outputs radios""" choices = '\n'.join(['%s\n' % w for w in self]) return mark_safe('