Remove duplicated html + add href link to order
This commit is contained in:
parent
a395b7a4a6
commit
f089892c90
2 changed files with 2 additions and 8 deletions
|
@ -2,7 +2,7 @@ import datetime
|
|||
import logging
|
||||
|
||||
from django import template
|
||||
from django.core.urlresolvers import resolve, reverse
|
||||
from django.core.urlresolvers import resolve, reverse, reverse_lazy
|
||||
from django.utils.safestring import mark_safe
|
||||
from django.utils.translation import activate, get_language, ugettext_lazy as _
|
||||
|
||||
|
@ -85,7 +85,7 @@ def get_line_item_from_hosting_order_charge(hosting_order_id):
|
|||
product_name=hosting_order.generic_product.product_name.capitalize(),
|
||||
created_at=hosting_order.created_at.strftime('%Y-%m-%d'),
|
||||
total='%.2f' % (hosting_order.price),
|
||||
receipt_url="test",
|
||||
receipt_url=reverse_lazy('hosting:login', hosting_order.id),
|
||||
see_invoice_text=_("See Invoice")
|
||||
))
|
||||
else:
|
||||
|
|
|
@ -86,12 +86,6 @@
|
|||
<tbody>
|
||||
{% for ho, stripe_charge_data in invs_charge %}
|
||||
<tr>
|
||||
<td class="xs-td-inline">{{ho.generic_product.product_name}}</td>
|
||||
<td class="xs-td-inline">{{ho.created_at}}</td>
|
||||
<td class="xs-td-inline">{{ho.price}}</td>
|
||||
<td class="text-right last-td">
|
||||
<a class="btn btn-order-detail" href="{stripe_charge_data.receipt_url}" target="_blank">{% trans "See Invoice" %}</a>
|
||||
</td>
|
||||
{{ ho.id | get_line_item_from_hosting_order_charge }}
|
||||
</tr>
|
||||
{% endfor %}
|
||||
|
|
Loading…
Reference in a new issue