Skip to content

Commit

Permalink
fix: Correction de l'affichage des cases à cocher des secteurs d'acti…
Browse files Browse the repository at this point in the history
…vités (#1467)
  • Loading branch information
SebastienReuiller authored Oct 17, 2024
1 parent 02fdbd5 commit a06e89a
Showing 1 changed file with 23 additions and 6 deletions.
29 changes: 23 additions & 6 deletions lemarche/templates/django/forms/widgets/checkbox_option.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,25 @@
{% if widget.wrap_label %}
<label {% if widget.attrs.id %}for="{{ widget.attrs.id }}"{% endif %}>
{% endif %}
{% include "django/forms/widgets/input.html" %}
{% if widget.attrs.dsfr == "dsfr" %}
<div class="fr-checkbox-group">
{% include "django/forms/widgets/input.html" %}
{% if widget.wrap_label %}
<label class="fr-label"
{% if widget.attrs.id %}for="{{ widget.attrs.id }}"{% endif %}>
{% if widget.label.label %}
{{ widget.label.label }}
<span class="fr-hint-text">{{ widget.label.help_text }}</span>
{% else %}
{{ widget.label }}
{% endif %}
</label>
{% endif %}
</div>
{% else %}
{% if widget.wrap_label %}
{{ widget.label }}
</label>
<label {% if widget.attrs.id %}for="{{ widget.attrs.id }}"{% endif %}>
{% endif %}
{% include "django/forms/widgets/input.html" %}
{% if widget.wrap_label %}
{{ widget.label }}
</label>
{% endif %}
{% endif %}

0 comments on commit a06e89a

Please sign in to comment.