On vérifie que la forme existe avant de tester si elle a des erreurs

This commit is contained in:
Jean-Marie Favreau 2024-11-06 13:10:45 +01:00
parent 67f7ed9287
commit 1f12e8b3fb

View File

@ -11,7 +11,7 @@
</div>
<div class="filtres">
<details {% if filter.is_active %}class="active"{% endif %} {% if filter.form.errors %}open=""{% endif %}>
<details {% if filter.is_active %}class="active"{% endif %} {% if filter.form and filter.form.errors %}open=""{% endif %}>
<summary role="button" class="outline secondary">
{% if filter.is_active %}
<strong>Filtres&nbsp;: </strong>