Skip to content

Commit

Permalink
Change columns and titles in payments list
Browse files Browse the repository at this point in the history
  • Loading branch information
maarcingebala committed Oct 29, 2014
1 parent 1a7259f commit 073ad12
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions saleor/dashboard/templates/dashboard/payments/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,34 +8,30 @@
{% block content %}
<div class="row">
<div class="col-lg-12">
<h1 class="page-header">{% trans "Payment events" %}</h1>
<h1 class="page-header">{% trans "Payments" %}</h1>
{% include "dashboard/includes/_status_filters.html" %}

<table class="table table-bordered">
<table class="table">
<thead>
<tr>
<th>{% trans "Order number" %}</th>
<th>{% trans "Order" %}</th>
<th>{% trans "Gateway" %}</th>
<th>{% trans "Date" %}</th>
<th>{% trans "Customer" %}</th>
<th>{% trans "Amount" %}</th>
<th>{% trans "Status" %}</th>
<th>{% trans "Captured amount" %}</th>
<th>{% trans "Amount" %}</th>
</tr>
</thead>
<tbody>
{% for payment in payments %}
<tr>
<td>
<a href="{% url 'dashboard:order-details' pk=payment.order.pk %}">{{ payment.order }}</a>
(<a href="{% url "dashboard:payment-details" pk=payment.pk %}">Transaction Details</a>)
(<a href="{% url "dashboard:payment-details" pk=payment.pk %}">{% trans "Payment details" %}</a>)
</td>
<td>{{ payment.variant }}</td>
<th>{{ payment.created }}</th>
<td>{{ payment.order.user|default:"Anonymous" }}</td>
<td>{% gross payment.get_total_price %}</td>
<td>{{ payment.created }}</td>
<td>{% render_status payment.status payment.get_status_display %}</td>
<td>{% gross payment.get_captured_price %}</td>
<td>{% gross payment.get_total_price %}</td>
</tr>
{% endfor %}
</tbody>
Expand Down

0 comments on commit 073ad12

Please sign in to comment.