diff options
author | Filipp Lepalaan <filipp@mac.com> | 2015-08-04 10:11:24 +0300 |
---|---|---|
committer | Filipp Lepalaan <filipp@mac.com> | 2015-08-04 10:11:24 +0300 |
commit | 63b0fc6269b38edf7234b9f151b80d81f614c0a3 (patch) | |
tree | 555de3068f33f8dddb4619349bbea7d9b7c822fd /servo/templates/purchases/view_po.html | |
download | Servo-63b0fc6269b38edf7234b9f151b80d81f614c0a3.tar.gz Servo-63b0fc6269b38edf7234b9f151b80d81f614c0a3.tar.bz2 Servo-63b0fc6269b38edf7234b9f151b80d81f614c0a3.zip |
Initial commit
First public commit
Diffstat (limited to 'servo/templates/purchases/view_po.html')
-rwxr-xr-x | servo/templates/purchases/view_po.html | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/servo/templates/purchases/view_po.html b/servo/templates/purchases/view_po.html new file mode 100755 index 0000000..c43a058 --- /dev/null +++ b/servo/templates/purchases/view_po.html @@ -0,0 +1,56 @@ +{% extends "purchases/edit_po.html" %} +{% load servo_tags %} +{% load i18n %} + +{% block toolbar %} +{% endblock toolbar %} + +{% block filter_bar %} +{% endblock filter_bar %} + +{% block detail_view %} + <div class="row"> + <div class="span4"> + <dl class="dl-horizontal"> + <dt>{% trans "Created By" %}</dt> + <dd>{{ po.created_by }}</dd> + <dt>{% trans "Created At" %}</dt> + <dd>{{ po.created_at|date:"SHORT_DATE_FORMAT" }}</dd> + <dt>{% trans "Sales Order" %}</dt> + <dd>{{ po.sales_order|default:"" }}</dd> + <dt>{% trans "Reference" %}</dt> + <dd>{{ po.reference }}</dd> + <dt>{% trans "Confirmation" %}</dt> + <dd>{{ po.confirmation }}</dd> + </dl> + </div> + <div class="span8"> + <table class="table"> + <thead> + <tr> + <th>{% trans "Product" %}</th> + <th>{% trans "Reference" %}</th> + <th>{% trans "Amount" %}</th> + <th>{% trans "Purchase Price" %}</th> + <th>{% trans "Received At" %}</th> + </tr> + </thead> + <tbody> + {% for i in po.purchaseorderitem_set.all %} + <tr> + <td><strong>{{ i.code }}</strong><br/>{{ i.title }}</td> + <td>{{ i.reference }}</td> + <td>{{ i.amount }}</td> + <td>{{ i.price|currency }}</td> + <td>{{ i.received_at|date:"SHORT_DATE_FORMAT"|default:"-" }}</td> + </tr> + {% endfor %} + </tbody> + </table> + </div> + </div> +{% endblock detail_view %} + +{% block crumbs %} + <li><a href="{% url 'purchases-list_pos' %}">{% trans "Purchase Orders" %}</a></li> +{% endblock crumbs %} |