Spaces:
Runtime error
Runtime error
File size: 985 Bytes
7d41d4b |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
{% extends 'layout.html' %}
{% block content %}
<form action="/contacts" method="get" class="tool-bar">
<label for="search">Search Term</label>
<input id="search" type="search" name="q"
value="{{ request.args.get('q') or '' }}"/>
<input type="submit" value="Search"/>
</form>
<table>
<thead>
<tr>
<th>First name <th>Last name <th>Phone <th>Email </th>
</tr>
</thead>
<tbody>
{% for contact in contacts %}
<tr>
<td>{{ contact.first }}</td>
<td>{{ contact.last }}</td>
<td>{{ contact.phone }}</td>
<td>{{ contact.email }}</td>
<td>
<a href="contacts/{{ contact.id }}/edit">Edit</a>
<a href="contacts/{{ contact.id }}">View</a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
<p>
<a href="/contacts/new">Add New Contact</a>
</p>
{% endblock %}
|