mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-28 11:26:26 -06:00
Final work on #9583 for basic functionality
This commit is contained in:
parent
664a0eba6d
commit
50557c0f9d
@ -1,6 +1,6 @@
|
||||
{% load form_helpers %}
|
||||
{% if form_field %}
|
||||
<div class="dropdown" style="display: inline;">
|
||||
<div class="column-filter dropdown">
|
||||
<a href="#" classs="btn dropdown-toggle" data-bs-toggle="dropdown" data-bs-auto-close="outside">
|
||||
<i class="mdi mdi-filter-settings" style="font-size: 1.25rem;"> </i>
|
||||
</a>
|
||||
|
@ -17,17 +17,21 @@
|
||||
><i class="mdi mdi-close"></i></a>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if table.filterset_form %}
|
||||
{% include 'inc/table_header_filter_dropdown.html' with form_field=table.filterset_form|getfilterfield:column.name %}
|
||||
{% endif %}
|
||||
<a href="#"
|
||||
hx-get="{{ table.htmx_url }}{% querystring table.prefixed_order_by_field=column.order_by_alias.next %}"
|
||||
hx-target="closest .htmx-container"
|
||||
{% if not table.embedded %}hx-push-url="true"{% endif %}
|
||||
>{{ column.header }}</a>
|
||||
{% include 'inc/table_header_filter_dropdown.html' with form_field=table.filterset_form|getfilterfield:column.name %}
|
||||
</th>
|
||||
{% else %}
|
||||
<th {{ column.attrs.th.as_html }}>
|
||||
{% if table.filterset_form %}
|
||||
{% include 'inc/table_header_filter_dropdown.html' with form_field=table.filterset_form|getfilterfield:column.name %}
|
||||
{% endif %}
|
||||
{{ column.header }}
|
||||
{% include 'inc/table_header_filter_dropdown.html' with form_field=table.filterset_form|getfilterfield:column.name %}
|
||||
</th>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
Loading…
Reference in New Issue
Block a user