Files
skeleton-api/app/templates/admin/_imported_parts_table_card.html
T
2026-09-21 13:31:30 -03:00

37 lines
1.5 KiB
HTML

{% from "admin/_sort_macros.html" import sort_th %}
<div id="imported-parts-table-card" class="card" style="overflow-x:auto">
{% include "admin/_pagination.html" %}
<table class="table">
<thead>
<tr>
{{ sort_th("InventoryID", "InventoryID", sort_headers) }}
{{ sort_th("Description", "Description", sort_headers) }}
{{ sort_th("TBXColour", "TBX Colour", sort_headers) }}
{{ sort_th("ProductMaxThreadDepthmm", "Max Thread Depth (mm)", sort_headers) }}
{{ sort_th("ProductMaxThreadDepthin", "Max Thread Depth (in)", sort_headers) }}
{{ sort_th("ProductODmm", "OD (mm)", sort_headers) }}
{{ sort_th("ProductODin", "OD (in)", sort_headers) }}
{{ sort_th("TBXThreadAttribute", "Thread Attribute", sort_headers) }}
{{ sort_th("UACDiameterRangemm", "UAC Diameter Range (mm)", sort_headers) }}
</tr>
</thead>
<tbody>
{% for p in parts %}
<tr>
<td>{{ p.InventoryID }}</td>
<td>{{ p.Description or '—' }}</td>
<td>{{ p.TBXColour or '—' }}</td>
<td>{{ p.ProductMaxThreadDepthmm or '—' }}</td>
<td>{{ p.ProductMaxThreadDepthin or '—' }}</td>
<td>{{ p.ProductODmm or '—' }}</td>
<td>{{ p.ProductODin or '—' }}</td>
<td>{{ p.TBXThreadAttribute or '—' }}</td>
<td>{{ p.UACDiameterRangemm or '—' }}</td>
</tr>
{% else %}
<tr><td colspan="9" class="muted">No imported parts. Use Refresh to sync from OData.</td></tr>
{% endfor %}
</tbody>
</table>
</div>