2021-09-29 18:52:08 -04:00
|
|
|
{% load utilities %}
|
2021-06-08 15:40:01 -04:00
|
|
|
{% if fallback_url %}
|
2021-09-29 18:52:08 -04:00
|
|
|
<form name="fallback_form_{{ 0|uuid }}" method="GET" action="{{ fallback_url }}">
|
2021-06-08 15:40:01 -04:00
|
|
|
{% endif %}
|
2021-01-17 11:26:28 -05:00
|
|
|
<button
|
2021-06-08 15:40:01 -04:00
|
|
|
{% if not fallback_url %}
|
|
|
|
type="button"
|
|
|
|
{% else %}
|
|
|
|
type="submit"
|
|
|
|
{% endif %}
|
2021-01-17 23:40:33 -05:00
|
|
|
class="{% if not nonbutton %}button {% endif %}{{ class }}{% if button_type %} {{ button_type }}{% endif %}"
|
2021-08-08 21:40:47 -04:00
|
|
|
data-controls="{{ controls_text }}{% if controls_uid %}_{{ controls_uid }}{% endif %}"
|
|
|
|
{% if focus %}data-focus-target="{{ focus }}{% if controls_uid %}_{{ controls_uid }}{% endif %}"{% endif %}
|
|
|
|
{% if checkbox %}data-controls-checkbox="{{ checkbox }}{% if controls_uid %}_{{ controls_uid }}{% endif %}"{% endif %}
|
2021-01-18 11:54:25 -05:00
|
|
|
{% if label %}aria-label="{{ label }}"{% endif %}
|
2021-01-17 11:50:47 -05:00
|
|
|
aria-pressed="{% if pressed %}true{% else %}false{% endif %}"
|
2021-01-30 14:43:40 -05:00
|
|
|
{% if disabled %}disabled{% endif %}
|
2021-01-17 11:26:28 -05:00
|
|
|
>
|
|
|
|
|
2021-01-14 16:02:50 -05:00
|
|
|
{% if icon %}
|
2021-04-21 16:32:14 -04:00
|
|
|
<span class="icon icon-{{ icon }} m-0-mobile" title="{{ text }}">
|
2021-01-14 16:02:50 -05:00
|
|
|
<span class="is-sr-only">{{ text }}</span>
|
|
|
|
</span>
|
2021-04-21 11:35:55 -04:00
|
|
|
{% elif icon_with_text %}
|
2021-04-21 16:32:14 -04:00
|
|
|
<span class="icon icon-{{ icon_with_text }} m-0-mobile" title="{{ text }}"></span>
|
|
|
|
<span class="is-sr-only-mobile">{{ text }}</span>
|
2021-01-14 16:02:50 -05:00
|
|
|
{% else %}
|
2021-01-30 14:43:40 -05:00
|
|
|
<span>{{ text }}</span>
|
2021-01-14 16:02:50 -05:00
|
|
|
{% endif %}
|
2021-01-17 11:26:28 -05:00
|
|
|
</button>
|
2021-06-08 15:40:01 -04:00
|
|
|
{% if fallback_url %}
|
|
|
|
</form>
|
|
|
|
{% endif %}
|