-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Correction de l'affichage des cases à cocher des secteurs d'acti…
…vités (#1467)
- Loading branch information
1 parent
02fdbd5
commit a06e89a
Showing
1 changed file
with
23 additions
and
6 deletions.
There are no files selected for viewing
29 changes: 23 additions & 6 deletions
29
lemarche/templates/django/forms/widgets/checkbox_option.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 %} |