{% extends "oscar/customer/wishlists/wishlists_detail.html" %} {% load i18n thumbnail widget_tweaks purchase_info_tags basket_tags %} {% block extrastyles %} {{ block.super }} {% endblock %} {% block tabcontent %} {% if form.total_form_count %}
{{ 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 %} {% thumbnail image.original "100x100" upscale=False as thumb %} {{ product.get_title }} {% endthumbnail %} {% endwith %} {% endif %} {% if product %} {{ line.get_title }} {% else %} {{ line.get_title }} ({% trans 'Not available anymore' %}) {% endif %} {% for field in subform %} {% render_field field class+="form-control" %} {% for error in field.errors %}
  • {{ error }}
{% endfor %} {% endfor %}
{% if product %} {% trans 'View product' %} {% else %} {% trans 'Actions' %} {% endif %}
{% for subform in form %} {% with product=subform.instance.product %} {% if product and not product.is_parent and not product.has_options and product.min_quantity <= 1 %} {% purchase_info_for_product request product as session %} {% if session.availability.is_available_to_buy %} {% basket_form request product 'single' as basket_form %}
{% csrf_token %} {{ basket_form.as_p }}
{% endif %} {% endif %} {% endwith %} {% endfor %} {% else %} {% trans "Your wish list is empty." %} {% endif %} {% endblock tabcontent %}