Merge branch 'master' into logout_button
This commit is contained in:
26
templates/asuzr/cost_items.html
Normal file
26
templates/asuzr/cost_items.html
Normal 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>
|
||||
@@ -20,6 +20,6 @@
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% else %}
|
||||
<p>Список заказов пуст</p>
|
||||
<p>Список пуст</p>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
12
templates/asuzr/order_costs.html
Normal file
12
templates/asuzr/order_costs.html
Normal 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 %}
|
||||
22
templates/asuzr/production_table.html
Normal file
22
templates/asuzr/production_table.html
Normal 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 %}
|
||||
Reference in New Issue
Block a user