{% load i18n fobi_tags crispy_forms_tags unfold_fobi_tags %}

{% comment %}
<div class="alert-box secondary alert-box-larger">
    {% blocktrans %}Fields marked with <span class="required-field">*</span> are required{% endblocktrans %}
</div>
{% endcomment %}

{% block form_non_field_and_hidden_errors %}
    {% get_form_hidden_fields_errors form as form_hidden_fields_errors %}
    {% if form.non_field_errors or form_hidden_fields_errors %}
        {% include fobi_theme.form_non_field_and_hidden_errors_snippet_template %}
    {% endif %}
{% endblock form_non_field_and_hidden_errors %}

{# Render only fields; outer <form> is provided by fobi/snippets/form_ajax.html #}
{{ form|crispy }}
