Skip to content

Commit

Permalink
Add "add payment profile" link to customer profile
Browse files Browse the repository at this point in the history
  • Loading branch information
treyhunner committed Jun 27, 2013
1 parent 5ef94fa commit 51c614f
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
{% extends "admin/authorizenet/change_form.html" %}
{% load url from future %}

{% block submit_buttons_bottom %}{% if not change %}{{ block.super }}{% endif %}{% endblock %}
{% block submit_buttons_top %}{% if not change %}{{ block.super }}{% endif %}{% endblock %}

{% block inline_field_sets %}
{{ block.super }}
{% if change %}
<a href="{% url "admin:authorizenet_customerpaymentprofile_add" %}?customer={{ adminform.form.instance.customer_id }}">
Add payment profile</a><br>
{% endif %}
{% endblock %}

0 comments on commit 51c614f

Please sign in to comment.