{# il2ks-template: templates/il2ks/components/tour_select.html v1 - copy this line along when you override #} {% load i18n il2ks %}{% comment %} tour_select.html ({% tour_select tours tour %}): the tour selector, a compact one-field GET form. Place it inside the page's title block (`.page-head`, right after the

): it floats right on the title's line and wraps below the title on a narrow screen; on the home page it sits in the banner. The select's first entries are "All time" (`?tour=all`) and "Current tour" (empty value: no parameter, the default), then the tours newest first (`?tour=`); "Next tour starts ..." (tour_next.html) sits beside it. Other query parameters are kept as hidden fields (never ?page=, so a new tour starts at page 1). With htmx it swaps the whole
(the tour changes the entire page, not one table) and pushes the URL, and submits when the choice changes; without JS the Apply button does. Inside an existing {% filter_bar %} use {% tour_filter tours tour %} instead. Context: tours (newest first), selected_id (the chosen tour's id, or "all"), all_value ("all"), is_all, is_current, next_start, action (current path), hidden ((name, value) pairs). Renders nothing while there are no tours yet. {% endcomment %}{% if tours %}
{% for name, value in hidden %} {% endfor %} {% include "il2ks/components/tour_next.html" %}
{% endif %}