Adding pervasive column sorting

This commit is contained in:
Ian Roddis committed 2026-07-31 09:52:09 -03:00
1 parent 34679d53e8
commit 2fb662080b
27 files changed
+614 -111

No files matched your search

@@ -1,16 +1,17 @@
{% from "admin/_sort_macros.html" import sort_th %}
<div id="augmented-parts-table-card" class="card">
{% include "admin/_pagination.html" %}
<table class="table">
<thead>
<tr>
<th>ID</th>
<th>SKU</th>
<th>Description</th>
<th>Colour</th>
<th>Manufacturer</th>
<th>Model</th>
<th>Type</th>
<th>Sub Type</th>
{{ sort_th("id", "ID", sort_headers) }}
{{ sort_th("sku", "SKU", sort_headers) }}
{{ sort_th("description", "Description", sort_headers) }}
{{ sort_th("colour", "Colour", sort_headers) }}
{{ sort_th("manufacturer", "Manufacturer", sort_headers) }}
{{ sort_th("scope_model", "Model", sort_headers) }}
{{ sort_th("part_type", "Type", sort_headers) }}
{{ sort_th("sub_part_type", "Sub Type", sort_headers) }}
<th></th>
</tr>
</thead>