10 lines
488 B
HTML
10 lines
488 B
HTML
|
<button type="button"
|
||
|
style="cursor:pointer;background:none;border:none;color:inherit;font:inherit;outline:inherit</a>"
|
||
|
hx-include="[name='search-form']"
|
||
|
hx-post="{{ url }}?direction={{ opposite-direction }}&sort-by={{ sort }}&limit={{ limit }}"
|
||
|
hx-trigger="click"
|
||
|
hx-target="#{{ target }}">{{ name }}
|
||
|
{% if sort-by == sort and direction == "asc" %} ↑
|
||
|
{% elif sort-by == sort and direction == "desc" %} ↓
|
||
|
{% endif %}</button>
|