Fix order fulfill display
This commit is contained in:
parent
bd9c7239ab
commit
2f34a43b28
@ -23,16 +23,29 @@
|
|||||||
</div>
|
</div>
|
||||||
{% for form in form %}
|
{% for form in form %}
|
||||||
<div class="object__item object__item--col4">
|
<div class="object__item object__item--col4">
|
||||||
{% with product=form.instance.variant.product %}
|
{% if item.variant %}
|
||||||
{{form.id}}
|
{% with product=form.instance.variant.product %}
|
||||||
<figure class="item__figure">
|
{{form.id}}
|
||||||
<img class="product__image product__image--small" src="{{product.get_first_img.image.url}}" alt="{{product.get_first_img.image}}">
|
<figure class="item__figure">
|
||||||
<figcaption><strong>{{form.instance.variant}}</strong></figcaption>
|
<img class="product__image product__image--small" src="{{product.get_first_img.image.url}}" alt="{{product.get_first_img.image}}">
|
||||||
</figure>
|
<figcaption><strong>{{form.instance.variant}}</strong></figcaption>
|
||||||
<span>{{product.sku}}</span>
|
</figure>
|
||||||
<span>{{form.quantity_fulfilled}} / {{form.instance.quantity}}</span>
|
<span>{{product.sku}}</span>
|
||||||
<span>{{form.instance.customer_note}}</span>
|
<span>{{form.quantity_fulfilled}} / {{form.instance.quantity}}</span>
|
||||||
{% endwith %}
|
<span>{{form.instance.customer_note}}</span>
|
||||||
|
{% endwith %}
|
||||||
|
{% elif item.product %}
|
||||||
|
{% with product=form.instance.product %}
|
||||||
|
{{form.id}}
|
||||||
|
<figure class="item__figure">
|
||||||
|
<img class="product__image product__image--small" src="{{product.get_first_img.image.url}}" alt="{{product.get_first_img.image}}">
|
||||||
|
<figcaption><strong>{{form.instance.variant}}</strong></figcaption>
|
||||||
|
</figure>
|
||||||
|
<span>{{product.sku}}</span>
|
||||||
|
<span>{{form.quantity_fulfilled}} / {{form.instance.quantity}}</span>
|
||||||
|
<span>{{form.instance.customer_note}}</span>
|
||||||
|
{% endwith %}
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
<div class="object__item object__item--col5">
|
<div class="object__item object__item--col5">
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user