Replace sorting icons in table
This commit is contained in:
parent
1ebccc7338
commit
6e25881c73
|
@ -19,12 +19,12 @@
|
||||||
{% if column.is_ordered %}
|
{% if column.is_ordered %}
|
||||||
{% is_descending column.order_by as descending %}
|
{% is_descending column.order_by as descending %}
|
||||||
{% if descending %}
|
{% if descending %}
|
||||||
<span aria-hidden="true">{% block table.desc_icon %}↓{% endblock table.desc_icon %}</span>
|
<span class="icon" aria-hidden="true">{% block table.desc_icon %}<i class="fa-solid fa-sort-down"></i>{% endblock table.desc_icon %}</span>
|
||||||
{% else %}
|
{% else %}
|
||||||
<span aria-hidden="true">{% block table.asc_icon %}↑{% endblock table.asc_icon %}</span>
|
<span class="icon" aria-hidden="true">{% block table.asc_icon %}<i class="fa-solid fa-sort-up"></i>{% endblock table.asc_icon %}</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% else %}
|
{% else %}
|
||||||
<span aria-hidden="true">{% block table.orderable_icon %}⥯{% endblock table.orderable_icon %}</span>
|
<span class="icon" aria-hidden="true">{% block table.orderable_icon %}<i class="fa-solid fa-sort"></i>{% endblock table.orderable_icon %}</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<a
|
<a
|
||||||
hx-get="search/{% querystring table.prefixed_order_by_field=column.order_by_alias.next %}&{{ uri }}"
|
hx-get="search/{% querystring table.prefixed_order_by_field=column.order_by_alias.next %}&{{ uri }}"
|
||||||
|
|
Loading…
Reference in New Issue