feat: tech specification for a group of deals
This commit is contained in:
@@ -28,8 +28,8 @@
|
||||
{% if common_product.color %}
|
||||
<div class="small-text">Цвет: {{ common_product.color }}</div>
|
||||
{% endif %}
|
||||
{% if product_data.deal_products|length > 1 %}
|
||||
{% if common_deal_product.quantity %}
|
||||
{% if product_data.deal_products|length > 1 or product_data.warehouses_and_quantities|length > 1 %}
|
||||
{% if product_data.quantity %}
|
||||
<div class="small-text">Суммарное количество: {{ product_data.quantity }}</div>
|
||||
{% endif %}
|
||||
{% if product_data.additional_info %}
|
||||
@@ -80,7 +80,7 @@
|
||||
</div>
|
||||
<!--#endregion -->
|
||||
<!--#region Product comment -->
|
||||
{% if product_data.deal_products|length == 1 and common_deal_product.comment %}
|
||||
{% if product_data.deal_products|length == 1 and common_deal_product.comment %}
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
@@ -88,9 +88,29 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>{{ common_deal_product.comment }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
{% endif %}
|
||||
<!--#endregion -->
|
||||
<!--#region Product warehouses and quantities -->
|
||||
{% if product_data.warehouses_and_quantities|length > 1 %}
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Склад отгрузки</th>
|
||||
<th>Количество</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for row in product_data.warehouses_and_quantities %}
|
||||
<tr>
|
||||
<td>{{ common_deal_product.comment }}</td>
|
||||
<td>{{ row[0] }}</td>
|
||||
<td>{{ row[1] }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user