-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add "add payment profile" link to customer profile
- Loading branch information
1 parent
5ef94fa
commit 51c614f
Showing
1 changed file
with
9 additions
and
0 deletions.
There are no files selected for viewing
9 changes: 9 additions & 0 deletions
9
authorizenet/templates/admin/authorizenet/customerprofile/change_form.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 %} |