aboutsummaryrefslogtreecommitdiffstats
path: root/servo/templates/products
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2015-11-11 15:44:10 +0200
committerFilipp Lepalaan <filipp@mac.com>2015-11-11 15:44:10 +0200
commitb36cd5c50493ca3567c5acfef665352bd39eadd3 (patch)
treebb2562d98aac6aaa9b0046543ef0574e199659c9 /servo/templates/products
parent19444b3b1c3d80b860d9d749942b7d2558950bcb (diff)
downloadServo-b36cd5c50493ca3567c5acfef665352bd39eadd3.tar.gz
Servo-b36cd5c50493ca3567c5acfef665352bd39eadd3.tar.bz2
Servo-b36cd5c50493ca3567c5acfef665352bd39eadd3.zip
Cleanup
Diffstat (limited to 'servo/templates/products')
-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 %}