On vérifie que la forme existe avant de tester si elle a des erreurs
This commit is contained in:
parent
67f7ed9287
commit
1f12e8b3fb
@ -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 : </strong>
|
||||
|
Loading…
Reference in New Issue
Block a user