conference-archive/templates/search_people.html

45 lines
1.1 KiB
HTML
Raw 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>
<p><a href="{{ url_for("index") }}">home</a></p>
<form action="{{ url_for("search_people") }}">
<div class="mb-3">
<label for="q" class="form-label">speaker name</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>
2023-09-24 09:21:16 +01:00
{% set count = q.count() %}
Found {{ count }} people matching '{{ search_for }}'
2023-09-15 19:04:41 +01:00
2023-09-25 16:51:29 +01:00
{% if is_admin() and count %}
2023-09-15 19:04:41 +01:00
<a href="{{ url_for("merge", q=search_for) }}">merge</a>
2023-09-24 09:21:16 +01:00
{% endif %}
2023-09-15 19:04:41 +01:00
</p>
<ul>
{% for item in q %}
<li>
<a href="{{ url_for("person", person_id=item.id) }}">{{ item.name }}</a>
{% if item.wikidata_qid %}
&mdash;
<a href="https://www.wikidata.org/wiki/{{ item.wikidata_qid }}">{{ item.wikidata_qid }} on Wikidata</a>
{% endif %}
</li>
{% endfor %}
</ul>
</div>
</div>
{% endblock %}