aboutsummaryrefslogtreecommitdiffstats
path: root/servo/templates/products/view.html
diff options
context:
space:
mode:
Diffstat (limited to 'servo/templates/products/view.html')
-rwxr-xr-xservo/templates/products/view.html10
1 files changed, 7 insertions, 3 deletions
diff --git a/servo/templates/products/view.html b/servo/templates/products/view.html
index 7f5f355..f719ed5 100755
--- a/servo/templates/products/view.html
+++ b/servo/templates/products/view.html
@@ -158,10 +158,11 @@
<th>{% trans "Received" %}</th>
</tr>
</thead>
+ <tbody>
{% for i in product.purchaseorderitem_set.all reversed %}
<tr>
{% with i.purchase_order as order %}
- <td><a href="{{ order.get_absolute_url }}">{{ order.pk }}</a></td>
+ <td><a href="{{ order.get_absolute_url }}">{{ order.pk|safe }}</a></td>
<td>{{ i.created_at|date:"SHORT_DATE_FORMAT" }}</td>
<td>{{ i.price|currency }}</td>
<td>{{ i.received_at|date:"SHORT_DATE_FORMAT" }}</td>
@@ -170,6 +171,7 @@
{% empty %}
<tr><td colspan="4" class="empty muted">{% trans "No Purchase Orders" %}</td></tr>
{% endfor %}
+ </tbody>
</table>
</div>
<div class="tab-pane" id="tab4">
@@ -182,9 +184,10 @@
<th>{% trans "Price" %}</th>
</tr>
</thead>
+ <tbody>
{% for i in product.invoiceitem_set.all reversed %}
<tr>
- <td><a href="{{ i.invoice.get_absolute_url }}">{{ i.invoice.pk }}</a></td>
+ <td><a href="{{ i.invoice.get_absolute_url }}">{{ i.invoice.pk|safe }}</a></td>
{% with i.invoice.order as order %}
<td><a href="{{ order.get_absolute_url }}">{{ order.code }}</a></td>
{% endwith %}
@@ -194,6 +197,7 @@
{% empty %}
<tr><td colspan="4" class="empty muted">{% trans "No invoices" %}</td></tr>
{% endfor %}
+ </tbody>
</table>
</div>
</div>
@@ -201,5 +205,5 @@
{% endblock third_column %}
{% block breadcrumb %}
-<li class="active"><span class="divider">/</span>{{ product.title }}</li>
+ <li class="active"><span class="divider">/</span>{{ product.title }}</li>
{% endblock breadcrumb %}