Skip to content

Commit

Permalink
Amélioration du snippet de formulaire (#155)
Browse files Browse the repository at this point in the history
* Update to take in account previous PR

* Update dependencies
  • Loading branch information
Ash-Crow committed Jun 26, 2024
1 parent c22db22 commit 8b27720
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 21 deletions.
8 changes: 3 additions & 5 deletions dsfr/templates/dsfr/form_snippet.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
{% load dsfr_tags %}
{% if form.non_field_errors %}
<section class="fr-my-4v fr-input-group fr-input-group--error">
{{ form.non_field_errors }}
</section>
{% endif %}
{% for hidden in form.hidden_fields %}
{{ hidden }}
{% endfor %}
{% for field in form.visible_fields %}
{% include "dsfr/form_field_snippets/field_snippet.html" %}
{% for field in form %}
{% dsfr_form_field field %}
{% endfor %}
32 changes: 16 additions & 16 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8b27720

Please sign in to comment.