{% load basket_tags %} {% load i18n %} {% if product.is_available_to_buy %} {% basket_form request.basket product as basket_form %}
{% csrf_token %} {% include "partials/form_fields.html" with form=basket_form %}
{% 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 %} {% endif %}