Fixing skipped tables part assignment
This commit is contained in:
1 parent
054770d370
commit
8860c5691f
1 file changed
+15
-15
@@ -3,6 +3,21 @@
|
|||||||
{% if sync_error %}<p class="alert alert-error">{{ sync_error }}</p>{% endif %}
|
{% if sync_error %}<p class="alert alert-error">{{ sync_error }}</p>{% endif %}
|
||||||
|
|
||||||
{% if any_unlinked %}
|
{% if any_unlinked %}
|
||||||
|
<div class="filter-bar">
|
||||||
|
<form hx-get="/admin/augmented-parts/skipped/filter"
|
||||||
|
hx-target="#skipped-parts-table-card"
|
||||||
|
hx-trigger="input delay:300ms, change"
|
||||||
|
hx-swap="outerHTML">
|
||||||
|
<input type="text" name="description" placeholder="Filter by description…" value="{{ filter_description or '' }}">
|
||||||
|
<select name="colour">
|
||||||
|
<option value="">All colours</option>
|
||||||
|
{% for c in skipped_colours %}
|
||||||
|
<option value="{{ c }}" {{ "selected" if filter_colour == c }}>{{ c }}</option>
|
||||||
|
{% endfor %}
|
||||||
|
</select>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
|
||||||
<form hx-post="/admin/augmented-parts/skipped"
|
<form hx-post="/admin/augmented-parts/skipped"
|
||||||
hx-target="#skipped-parts-list"
|
hx-target="#skipped-parts-list"
|
||||||
hx-swap="outerHTML">
|
hx-swap="outerHTML">
|
||||||
@@ -29,21 +44,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="filter-bar">
|
|
||||||
<form hx-get="/admin/augmented-parts/skipped/filter"
|
|
||||||
hx-target="#skipped-parts-table-card"
|
|
||||||
hx-trigger="input delay:300ms, change"
|
|
||||||
hx-swap="outerHTML">
|
|
||||||
<input type="text" name="description" placeholder="Filter by description…" value="{{ filter_description or '' }}">
|
|
||||||
<select name="colour">
|
|
||||||
<option value="">All colours</option>
|
|
||||||
{% for c in skipped_colours %}
|
|
||||||
<option value="{{ c }}" {{ "selected" if filter_colour == c }}>{{ c }}</option>
|
|
||||||
{% endfor %}
|
|
||||||
</select>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{% include "admin/_skipped_parts_table_card.html" %}
|
{% include "admin/_skipped_parts_table_card.html" %}
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
|
|||||||
Reference in new issue
Block a user