Merge branch 'master' into logout_button

This commit is contained in:
2015-06-07 16:53:36 +05:00
17 changed files with 359 additions and 9 deletions

View File

@@ -0,0 +1,26 @@
<TABLE BORDER WIDTH="100%">
{% if cost_items %}
<ul>
<TR>
<TH>{{sel_order.product.name}} <br> Комплектующие</TH>
<TH>Стоимость <br> {{sel_order.price}}</TH>
</TR>
{% for item in cost_items %}
<TR>
<TD>{{ item }}</TD>
<TD></TD>
</TR>
{% endfor %}
<TR>
<TD> Итого затрат</TD>
<TD></TD>
</TR>
<TR>
<TD> Прибыль</TD>
<TD></TD>
</TR>
</ul>
{% else %}
<p> Список пуст</p>
{% endif %}
</TABLE>

View File

@@ -20,6 +20,6 @@
{% endfor %}
</ul>
{% else %}
<p>Список заказов пуст</p>
<p>Список пуст</p>
{% endif %}
{% endblock %}

View File

@@ -0,0 +1,12 @@
{% extends "asuzr/base.html" %}
{% block title %} Производственная таблица {% endblock %}
{% block page %}
<table WIDTH="100%">
<TR VALIGN=top>
<TD WIDTH="50%">{% include 'asuzr/production_table.html' %}</TD>
<TD WIDTH="5%"></TD>
<TD WIDTH="45%">{% include 'asuzr/cost_items.html' %}</TD>
</TR>
</table>
{% endblock %}

View File

@@ -0,0 +1,22 @@
{% block page %}
<TABLE BORDER>
{% if order_list %}
<ul>
<TR>
<TH WIDTH="40%">Наименование</TH>
<TH>Срок сдачи</TH>
<TH>Адрес</TH>
</TR>
{% for o in order_list %}
<TR>
<TD>{{o.product.name}}</TD>
<TD>{{o.date_dmy}}</TD>
<TD>{{o.address}}</TD>
</TR>
{% endfor %}
</ul>
{% else %}
<p>Список заказов пуст</p>
{% endif %}
</table>
{% endblock %}