{% if item.warnings is not empty or form_id != 0 %}

    <div class="productWarningsDanger">

        {% for warning in item.warnings %}

            {% if warning.warning_type == 2 %}
                {% set warning_class = 'alert' %}
            {% elseif warning.warning_type == 3 %}
                {% set warning_class = 'error' %}
            {% else %}
                {% set warning_class = 'info' %}
            {% endif %}


            <div class="productWarning {{  warning_class }}">
                {% if warning.warning_type == 1 %}
                    {{ warning.content|raw }}
                {% elseif warning.warning_type == 2 %}
                    {{ warning.content|raw }}
                {% elseif warning.warning_type == 3 %}
                    {{ warning.content|raw }}
                {% endif %}
            </div> <!-- .productWarning -->
        {% endfor %}

    </div>

{% endif %}
