-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6587d89
commit 36e925a
Showing
5 changed files
with
38 additions
and
31 deletions.
There are no files selected for viewing
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,22 +1,21 @@ | ||
{% with id=widget.attrs.id %} | ||
<fieldset | ||
{% if id %}id="{{ id }}"{% endif %} | ||
class="fr-fieldset{% if widget.attrs.class %} {{ widget.attrs.class }}{% endif %}" | ||
{% if id %}aria-labelledby="{{ id }}-legend"{% endif %} | ||
> | ||
<fieldset {% if id %}id="{{ id }}"{% endif %} | ||
class="fr-fieldset{% if widget.attrs.class %} {{ widget.attrs.class }}{% endif %}" | ||
{% if id %}aria-labelledby="{{ id }}-legend"{% endif %}> | ||
{% for group, options, index in widget.optgroups %} | ||
{% if group %} | ||
<legend | ||
id="{{ group }}-legend" | ||
class="fr-fieldset__legend{% if widget.attrs.legend_classes %} {{ widget.attrs.legend_classes }}{% endif %}" | ||
> | ||
<legend id="{{ group }}-legend" | ||
class="fr-fieldset__legend{% if widget.attrs.legend_classes %} {{ widget.attrs.legend_classes }}{% endif %}"> | ||
{{ group }} | ||
</legend> | ||
<fieldset aria-labelledby="{{ group }}-legend"> | ||
{% endif %} | ||
{% for option in options %} | ||
{% include option.template_name with widget=option %} | ||
{% endfor %} | ||
{% if group %} | ||
</fieldset> | ||
{% endif %} | ||
{% for option in options %} | ||
{% include option.template_name with widget=option %} | ||
{% endfor %} | ||
{% if group %}</fieldset>{% endif %} | ||
{% endfor %} | ||
</fieldset>{% endwith %} | ||
</fieldset> | ||
{% endwith %} |
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,14 +1,17 @@ | ||
<div class="fr-fieldset__element{% if widget.inline %} fr-fieldset__element--inline{% endif %}"> | ||
<div class="fr-radio-group fr-radio-rich"> | ||
<input value="{{ widget.value }}" type="{{ widget.type }}" id="{{ widget.attrs.id }}" name="{{ widget.name }}"> | ||
<label class="fr-label" for="{{ widget.attrs.id }}">{{ widget.html_label }}</label> | ||
<input value="{{ widget.value }}" | ||
type="{{ widget.type }}" | ||
id="{{ widget.attrs.id }}" | ||
name="{{ widget.name }}"> | ||
<label class="fr-label" for="{{ widget.attrs.id }}"> | ||
{{ widget.html_label }} | ||
</label> | ||
{% if widget.pictogram %} | ||
<div class="fr-radio-rich__pictogram"> | ||
<img | ||
src="{{ widget.pictogram }}" | ||
{% if widget.pictogram_alt is not None %} alt="{{ widget.pictogram_alt }}"{% endif %} | ||
/> | ||
<img src="{{ widget.pictogram }}" | ||
{% if widget.pictogram_alt is not None %} alt="{{ widget.pictogram_alt }}"{% endif %} /> | ||
</div> | ||
{% endif %} | ||
</div> | ||
</div> | ||
</div> |
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
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
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