{% extends "oscar/basket/partials/basket_content.html" %} {% load i18n %} {% load thumbnail %} {% load currency_filters %} {% load purchase_info_tags %} {% load widget_tweaks %} {% load ocyanjson %} {% block basket_form_main %} {% ocyanjson "oscar" "show_tax_everywhere" False as show_tax %}
{% csrf_token %} {{ formset.management_form }} {% for form in formset %} {% with line=form.instance product=form.instance.product %} {% purchase_info_for_line request line as session %}
{{ form.id }} {% with image=product.primary_image %} {% thumbnail image.original "100x100" upscale=False as thumb %} {{ product.get_title }} {% endthumbnail %} {% endwith %}

{{ line.description }}

{{ session.availability.message }}

{% render_field form.quantity class+="form-control" %}
{% trans "Remove" %} {% if user.is_authenticated %} | {% trans "Save for later" %} {% endif %}
{{ form.save_for_later }} {{ form.DELETE }}
{% for field_errors in form.errors.values %} {% for error in field_errors %} {{ error }} {% endfor %} {% endfor %}
{% if not line.unit_price_incl_tax and not line.unit_tax_excl_tax %}

{% else %}

{% if line.is_tax_known %} {{ line.unit_price_incl_tax|currency:line.price_currency }}{% if show_tax %}
{% with line.unit_price_excl_tax|currency:line.price_currency as price_excl_tax %} {% blocktrans %}Excl. tax {{ price_excl_tax }}{% endblocktrans %} {% endwith %}{% endif %} {% else %} {{ line.unit_price_excl_tax|currency:line.price_currency }} {% endif %}

{% endif %}
{% if not line.line_price_incl_tax and not line_price_excl_tax %}

{% else %}

{% if line.is_tax_known %} {{ line.line_price_incl_tax|currency:line.price_currency }}{% if show_tax %}
{% with line.line_price_excl_tax|currency:line.price_currency as price_excl_tax %} {% blocktrans %}Excl. tax {{ price_excl_tax }}{% endblocktrans %} {% endwith %}{% endif %} {% else %} {{ line.line_price_excl_tax|currency:line.price_currency }} {% endif %}

{% endif %}
{% endwith %} {% endfor %}
{% endblock %}