{% load i18n %}

{% if form.is_bound and not form.is_valid %}
    <div class="alert alert-danger">
        <strong>{% trans "Oops! We found some errors" %}</strong> - {% trans "please check the error messages below and try again" %}
    </div>
{% endif %}

{% if form.non_field_errors %}
    {% for error in form.non_field_errors %}
        <div class="alert alert-danger form-group">
            <span class="help-inline"><i class="fas fa-exclamation"></i> {{ error }}</span>
        </div>
    {% endfor %}
{% endif %}

{% for field in form %}
    {% include 'oscar/dashboard/partials/form_field.html' with field=field style=style %}
{% endfor %}
