aboutsummaryrefslogtreecommitdiff
path: root/webmentions_ssg/templates/sent.html
diff options
context:
space:
mode:
authorDennis Fink2026-11-18 21:42:59 +0100
committerDennis Fink2026-11-18 21:42:59 +0100
commitc724c87eb5e23581732a275f1dd808da72932286 (patch)
tree47db97175335917c97ec61d403b771dd531786e9 /webmentions_ssg/templates/sent.html
parentf267db9148e3a390a1a2e50fe71ac4675dceaea1 (diff)
downloadwebmentions-ssg-c724c87eb5e23581732a275f1dd808da72932286.tar.gz
webmentions-ssg-c724c87eb5e23581732a275f1dd808da72932286.zip
refactor(core): standardize filter form rendering
Render received and sent list controls through their WTForms instances and use a shared `filter_form` template variable for consistent filter handling.
Diffstat (limited to '')
-rw-r--r--webmentions_ssg/templates/sent.html24
1 files changed, 12 insertions, 12 deletions
diff --git a/webmentions_ssg/templates/sent.html b/webmentions_ssg/templates/sent.html
index 6febdb9..b613f4b 100644
--- a/webmentions_ssg/templates/sent.html
+++ b/webmentions_ssg/templates/sent.html
@@ -40,27 +40,27 @@ SPDX-License-Identifier: BSD-3-Clause
method="get"
class="row g-2 align-items-end mb-4"
role="search">
- {{ form.sort }}
- {{ form.order }}
+ {{ filter_form.sort }}
+ {{ filter_form.order }}
<div class="col-sm-6 col-lg">
- {{ form.status.label(class_="form-label") }}
- {{ form.status(class_="form-select") }}
+ {{ filter_form.status.label(class_="form-label") }}
+ {{ filter_form.status(class_="form-select") }}
</div>
<div class="col-sm-6 col-lg">
- {{ form.q.label(class_="form-label") }}
- {{ form.q(class_="form-control", placeholder="Search paths and URLs") }}
+ {{ filter_form.q.label(class_="form-label") }}
+ {{ filter_form.q(class_="form-control", placeholder="Search paths and URLs") }}
</div>
<div class="col-sm-6 col-lg">
- {{ form.date_from.label(class_="form-label") }}
- {{ form.date_from(class_="form-control") }}
+ {{ filter_form.date_from.label(class_="form-label") }}
+ {{ filter_form.date_from(class_="form-control") }}
</div>
<div class="col-sm-6 col-lg">
- {{ form.date_to.label(class_="form-label") }}
- {{ form.date_to(class_="form-control") }}
+ {{ filter_form.date_to.label(class_="form-label") }}
+ {{ filter_form.date_to(class_="form-control") }}
</div>
<div class="col-sm-6 col-lg-auto">
- {{ form.per_page.label(class_="form-label") }}
- {{ form.per_page(class_="form-control", min=1, max=max_source_page_size, step=1) }}
+ {{ filter_form.per_page.label(class_="form-label") }}
+ {{ filter_form.per_page(class_="form-control", min=1, max=max_source_page_size, step=1) }}
</div>
<div class="col-auto d-flex gap-2 ms-auto">
<button type="submit" class="btn btn-primary">Filter</button>