|
<!doctype html> |
|
<html lang="en"> |
|
<head> |
|
<meta charset="utf-8"> |
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> |
|
<title>Contacts</title> |
|
<style> |
|
table { |
|
width: 70%; |
|
border-collapse: collapse; |
|
} |
|
th, td { |
|
border: 1px solid black; |
|
padding: 8px; |
|
text-align: left; |
|
} |
|
th { |
|
background-color: #f2f2f2; |
|
} |
|
</style> |
|
</head> |
|
<body> |
|
<h1>Contacts</h1> |
|
<p>Total users: {{ total_users }}</p> |
|
<table> |
|
<tr> |
|
<th>Name</th> |
|
<th>Phone</th> |
|
<th>Email</th> |
|
</tr> |
|
{% for contact in contacts %} |
|
<tr> |
|
<td>{{ contact[0] }}</td> |
|
<td>{{ contact[1] }}</td> |
|
<td>{{ contact[2] }}</td> |
|
</tr> |
|
{% endfor %} |
|
</table> |
|
</body> |
|
</html> |