{% extends "pinax/stripe/base.html" %} {% load bootstrap %} {% block body_class %}{{ block.super }} pinax-stripe-subscriptions{% endblock %} {% block content %} {% if object %} {% url "pinax_stripe_subscription_update" object.pk as post_url %} {% else %} {% url "pinax_stripe_subscription_create" as post_url %} {% endif %}

{% if object %}Change{% else %}Add{% endif %} Subscription {% if object %}{{ object.plan.name }}{% endif %}

{% if errors %}
{{ errors }}
{% endif %}
{% csrf_token %} {{ form|bootstrap }} {% if not request.user.customer.default_source %}
{% endif %}
{% endblock %} {% block scripts %} {% include "pinax/stripe/_stripe_js.html" %} {{ block.super }} {% endblock %}