{% if formset.non_form_errors %}
    <div class="alert mb-4">
        {% if formset_error_title %}
            <div class="bg-red-500 text-white font-bold rounded-t px-4 py-2">
                {{ formset_error_title }}
            </div>
        {% endif %}
        <div class="border border-red-400 rounded-b bg-red-100 px-4 py-3 text-red-700">
            <ul>
                {{ formset.non_form_errors|unordered_list }}
            </ul>
        </div>
    </div>
{% endif %}
