djLint/tests/django_cms/cms/wizards/wizardoptionwidget.html
2021-08-02 09:18:05 -05:00

11 lines
500 B
HTML

{% for group, entries, index in widget.optgroups %}
{% for entry in entries %}
<label tabindex="0" class="choice{% if forloop.parentloop.first %}active{% endif %}">
<input type="radio" name="{{ entry.name }}" value="{{ entry.value }}"
{% if forloop.parentloop.first %}checked {% endif %}
>
<strong>{{ entry.label }}</strong>
<span class="info">{{ entry.attrs.description }}</span>
</label>
{% endfor %}
{% endfor %}