{% load image_tags %} {% load i18n %} {% load widget_tweaks %}
{{ control_form.sort_by }}
{{ form.management_form }} {% csrf_token %}
{% for subform in form %} {% with line=subform.instance product=subform.instance.product %} {% endwith %} {% endfor %}
{% trans 'Product' %} {% trans 'Quantity' %} {% trans 'Action' %}
{% if product %} {% with image=product.primary_image %} {% oscar_thumbnail image.original "100x100" upscale=False as thumb %} {% if product.is_public %} {{ product.get_title }} {% else %} {{ product.get_title }} {% endif %} {% endwith %} {% endif %}
{% if product and product.is_public %} {{ line.get_title }} {% else %} {{ line.get_title }} ({% trans 'Not available anymore' %}) {% endif %} {% if product and product.is_public %} {% render_field subform.quantity class+="form-control" %} {% else %} {% render_field subform.quantity class+="d-none" %} {% endif %} {% for error in field.errors %}
  • {{ error }}
{% endfor %} {% for field in subform.hidden_fields %} {{ field }} {% endfor %}
{% trans 'Aus Liste entfernen' %} {% if not is_sorted %} {% endif %}