mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-19 09:53:34 -06:00
Merge pull request #10232 from netbox-community/9477-reset-column-ordering
Closes #9477: Add a button to clear applied table column ordering
This commit is contained in:
commit
dc4ddedca3
BIN
netbox/project-static/dist/netbox-dark.css
vendored
BIN
netbox/project-static/dist/netbox-dark.css
vendored
Binary file not shown.
BIN
netbox/project-static/dist/netbox-light.css
vendored
BIN
netbox/project-static/dist/netbox-light.css
vendored
Binary file not shown.
BIN
netbox/project-static/dist/netbox-print.css
vendored
BIN
netbox/project-static/dist/netbox-print.css
vendored
Binary file not shown.
@ -235,12 +235,12 @@ table {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
th.asc a::after {
|
th.asc > a::after {
|
||||||
content: "\f0140";
|
content: "\f0140";
|
||||||
font-family: 'Material Design Icons';
|
font-family: 'Material Design Icons';
|
||||||
}
|
}
|
||||||
|
|
||||||
th.desc a::after {
|
th.desc > a::after {
|
||||||
content: "\f0143";
|
content: "\f0143";
|
||||||
font-family: 'Material Design Icons';
|
font-family: 'Material Design Icons';
|
||||||
}
|
}
|
||||||
|
@ -8,6 +8,16 @@
|
|||||||
{% for column in table.columns %}
|
{% for column in table.columns %}
|
||||||
{% if column.orderable %}
|
{% if column.orderable %}
|
||||||
<th {{ column.attrs.th.as_html }}>
|
<th {{ column.attrs.th.as_html }}>
|
||||||
|
{% if column.is_ordered %}
|
||||||
|
<div class="float-end">
|
||||||
|
<a href="#"
|
||||||
|
hx-get="{% querystring table.prefixed_order_by_field='' %}"
|
||||||
|
hx-target="#object_list"
|
||||||
|
hx-push-url="true"
|
||||||
|
class="text-danger"
|
||||||
|
><i class="mdi mdi-close"></i></a>
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
<a href="#"
|
<a href="#"
|
||||||
hx-get="{% querystring table.prefixed_order_by_field=column.order_by_alias.next %}"
|
hx-get="{% querystring table.prefixed_order_by_field=column.order_by_alias.next %}"
|
||||||
hx-target="#object_list"
|
hx-target="#object_list"
|
||||||
|
Loading…
Reference in New Issue
Block a user