Uses snippet for toggle buttons
This commit is contained in:
parent
e57c4f4bcd
commit
aa564b26c8
13 changed files with 45 additions and 66 deletions
9
bookwyrm/templates/snippets/toggle/toggle_button.html
Normal file
9
bookwyrm/templates/snippets/toggle/toggle_button.html
Normal file
|
@ -0,0 +1,9 @@
|
|||
<label class="{% if class %}{{ class }}{% else %}button{% endif %}{% if small %} is-small{% endif %}" for="{{ controls_text }}{% if controls_uid %}-{{ controls_uid }}{% endif %}" tabindex="0" role="button">
|
||||
{% if icon %}
|
||||
<span class="icon icon-{{ icon }}">
|
||||
<span class="is-sr-only">{{ text }}</span>
|
||||
</span>
|
||||
{% else %}
|
||||
{{ text }}
|
||||
{% endif %}
|
||||
</label>
|
Loading…
Add table
Add a link
Reference in a new issue