<!DOCTYPE html>
<html>
<head><title>Список работников</title></head>
<body>
<h2>Работники</h2>
<!-- Форма поиска -->
<form method="get" action="/">
<label>Таб. номер: <input type="text" name="tabnum" value="{{ search_tabnum }}"></label>
<label>Фамилия: <input type="text" name="fam" value="{{ search_fam }}"></label>
<button type="submit">Поиск</button>
<a href="/"><button type="button">Сброс</button></a>
</form>
<br>
{% if rows %}
<table border="1">
<tr>
{% for col in columns %}
<th>{{ col }}</th>
{% endfor %}
<th>Действие</th>
</tr>
{% for row in rows %}
<tr>
{% for cell in row %}
<td>{{ cell }}</td>
{% endfor %}
<td><a href="/employee/{{ row[0] }}/children"><button>Выбрать</button></a></td>
</tr>
{% endfor %}
</table>
{% else %}
<p>Нет данных для отображения.</p>
{% endif %}
</body>
</html>