Permalink
Browse files

Changing references for static files

  • Loading branch information...
nishadmusthafa committed Feb 23, 2012
1 parent 07c64ae commit 77324766a33fa023d09acca4e5f0ed7eff27b8bb
@@ -1,6 +1,6 @@
<form action="" method="POST" id="payment-form">{% csrf_token %}
<noscript><h3>Note:&nbsp; this form requires Javascript to use.</h3></noscript>
<span class="payment-errors"></span>
- {{ zebra_form.as_p }}
+ {{ stripe_helper_form.as_p }}
<button type="submit" class="submit-button">Submit Payment</button>
</form>
@@ -1,4 +1,4 @@
-{{zebra_form.media}}
+{{stripe_helper_form.media}}
<script type="text/javascript">
Stripe.setPublishableKey('{{STRIPE_PUBLISHABLE}}');
-</script>
+</script>
@@ -11,20 +11,20 @@
register = template.Library()
def _set_up_zebra_form(context):
- if not "zebra_form" in context:
+ if not "stripe_helper_form" in context:
if "form" in context:
- context["zebra_form"] = context["form"]
+ context["stripe_helper_form"] = context["form"]
else:
raise Exception, "Missing stripe form."
context["STRIPE_PUBLISHABLE"] = options.STRIPE_PUBLISHABLE
return context
-@register.inclusion_tag('zebra/_stripe_js_and_set_stripe_key.html', takes_context=True)
-def zebra_head_and_stripe_key(context):
+@register.inclusion_tag('stripe_helper/_stripe_js_and_set_stripe_key.html', takes_context=True)
+def stripe_helper_head_and_stripe_key(context):
return _set_up_zebra_form(context)
-@register.inclusion_tag('zebra/_basic_card_form.html', takes_context=True)
-def zebra_card_form(context):
+@register.inclusion_tag('stripe_helper/_basic_card_form.html', takes_context=True)
+def stripe_helper_card_form(context):
return _set_up_zebra_form(context)
View
@@ -20,9 +20,9 @@ def _strip_name_attr(self, widget_string, name):
class Media:
css = {
- 'all': ('zebra/card-form.css',)
+ 'all': ('stripe_helper/card-form.css',)
}
- js = ('zebra/card-form.js', 'https://js.stripe.com/v1/')
+ js = ('stripe_helper/card-form.js', 'https://js.stripe.com/v1/')

0 comments on commit 7732476

Please sign in to comment.