{% extends "_wrapper.html" %}

{% block main %}

<h1>Phonebook</h1>

<p>{{ messages.description }}</p>

<section>
  <form id="search" method="GET">
    <input type="text" name="q" value="{{ q }}"/>
    <input type="submit" value="Search"/>
  </form>
</section>

<section>
  <table>
    <thead>
      <tr>
        <th>Id</th>
        <th>Surname</th>
        <th>Firstname</th>
        <th>Phone</th>
      </tr>
    </thead>
    <tbody>
      {% for entry in entries %}
      <tr>
        <td><a href="{{ entry.h