Skip to content

Commit

Permalink
rollback dsfr part for front
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastienReuiller committed Oct 17, 2024
1 parent 02fdbd5 commit 7bd5e38
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 7bd5e38

Please sign in to comment.