conference-archive/confarchive/templates/search_events.html

40 lines
1.1 KiB
HTML
Raw Permalink Normal View History

2023-09-15 19:04:41 +01:00
{% extends "base.html" %}
{% block title %}Conference archive{% endblock %}
{% block content %}
<div class="container">
<div class="row">
<h1>Conference archive</h1>
<form action="{{ url_for("events_page") }}">
<div class="mb-3">
<label for="q" class="form-label">event</label>
<input type="text" class="form-control" name="q" id="q" value="{{ search_for }}">
</div>
<button type="submit" class="btn btn-primary">Search</button>
</form>
<p>Found {{ q.count() }} events matching '{{ search_for }}'</p>
{% for item in q %}
2023-09-22 21:00:56 +01:00
<div>
🎤
2023-09-15 19:04:41 +01:00
<a href="{{ url_for("event_page", event_id=item.id) }}">{{ item.title }}</a>
&mdash;
<a href="{{ url_for("conference_page", short_name=item.conference.short_name) }}">{{ item.conference.title }}</a>
&mdash;
{{ item.event_date.strftime("%d %b %Y at %H:%M") if item.event_date else "date missing" }}
2023-09-15 19:04:41 +01:00
&mdash;
{% for p in item.people %}
<a href="{{ url_for("person", person_id=p.id) }}">{{ p.name }}</a>
{% endfor %}
</li>
{% endfor %}
</ul>
</div>
</div>
{% endblock %}