finished conversion to tailwind
This commit is contained in:
parent
6e2843c60e
commit
d62956d465
50 changed files with 2490 additions and 1273 deletions
13
theme/templates/widgets/button_radio_select.html
Normal file
13
theme/templates/widgets/button_radio_select.html
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{% for group, options, index in widget.optgroups %}
|
||||
<div class="btn-group" role="group" aria-label="Trade Acceptance State">
|
||||
{% for option in options %}
|
||||
<label class="btn btn-outline-primary {% if option.selected %}btn-active{% endif %}">
|
||||
<input type="radio" name="{{ widget.name }}" value="{{ option.value }}"
|
||||
{% for attr, val in option.attrs.items %} {{ attr }}="{{ val }}" {% endfor %}
|
||||
autocomplete="off" style="display:none;"
|
||||
{% if option.selected %} checked {% endif %}>
|
||||
{{ option.label }}
|
||||
</label>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endfor %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue