Add conference country filter

This commit is contained in:
Edward Betts 2026-07-09 10:13:49 +01:00
parent 442ae98463
commit 38dbb2b4e7
3 changed files with 178 additions and 1 deletions

View file

@ -212,6 +212,28 @@ tr.conf-hl > td {
<div class="container-fluid mt-2">
<h1>Conferences</h1>
{% if country_options %}
<form method="get" class="row g-2 align-items-end mb-3">
<div class="col-auto">
<label for="country-filter" class="form-label mb-1">Country</label>
<select id="country-filter" name="country" class="form-select form-select-sm" onchange="this.form.submit()">
<option value="">All countries</option>
{% for option in country_options %}
<option value="{{ option.code }}"{% if option.code == selected_country %} selected{% endif %}>
{{ option.flag }} {{ option.name }}
</option>
{% endfor %}
</select>
</div>
<div class="col-auto">
<button type="submit" class="btn btn-sm btn-primary">Filter</button>
{% if selected_country %}
<a class="btn btn-sm btn-outline-secondary" href="{{ url_for(request.endpoint) }}">Clear</a>
{% endif %}
</div>
</form>
{% endif %}
{{ render_timeline(timeline) }}
<table class="table table-sm table-hover align-middle">