{% load basket_tags %} {% load display_tags %} {% load i18n %} {% load purchase_info_tags %} {% load bootstrap4 %} {% load content_tags %} {% purchase_info_for_product request product as session %} {% if session.availability.is_available_to_buy %} {% basket_form request product 'mutiple' as basket_form %}
{% csrf_token %} {% for field in basket_form %} {% if not field.name == 'quantity' and not field.name == 'subscription-interval' and not field.name == 'surprise' %} {% bootstrap_field field %} {% elif field.name == 'subscription-interval' %}
{% bootstrap_field field form_group_class='form-group subscription-interval' show_label=False %} {% elif field.name == 'surprise' %} {% bootstrap_field field form_group_class="form-group surprise-form-group text-center" label_class="d-block" %} {% endif %} {% endfor %}
{% bootstrap_field basket_form.quantity show_label=False %}
{% comment %} {% iffeature "wishlists" %} {% include "catalogue/partials/add_to_wishlist.html" %} {% endiffeature %} {% endcomment %} {% else %} {% if has_active_alert %}

{% trans "You have an active stock alert for this product." %}

{% else %}
{% csrf_token %}

{% trans "You can get an email alert when this product is back in stock." %}

{% include "partials/form_fields.html" with form=alert_form %}
{% endif %} {% comment %} {% iffeature "wishlists" %} {% include "catalogue/partials/add_to_wishlist.html" %} {% endiffeature %} {% endcomment %} {% endif %}