|
<!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> |
|
body { |
|
font-family: Arial, sans-serif; |
|
text-align: center; |
|
background-color: #f0f0f0; |
|
margin: 0; |
|
padding: 0; |
|
max-height: 250px; |
|
} |
|
h1 { |
|
background-color: #4CAF50; |
|
color: white; |
|
padding: 20px; |
|
margin: 0; |
|
border-bottom: 2px solid #388E3C; |
|
} |
|
.scroll-container { |
|
max-height: 400px; |
|
overflow-y: auto; |
|
width: 70%; |
|
margin: 20px auto; |
|
background-color: white; |
|
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); |
|
} |
|
table { |
|
width: 100%; |
|
border-collapse: collapse; |
|
} |
|
th, td { |
|
border: 1px solid #ddd; |
|
padding: 12px; |
|
text-align: left; |
|
} |
|
th { |
|
background-color: #4CAF50; |
|
color: white; |
|
border-bottom: 2px solid #388E3C; |
|
} |
|
tr:nth-child(even) { |
|
background-color: #f2f2f2; |
|
} |
|
tr:hover { |
|
background-color: #e0e0e0; |
|
} |
|
p { |
|
margin-top: 20px; |
|
font-size: 18px; |
|
color: #333; |
|
} |
|
</style> |
|
</head> |
|
<body> |
|
<h1>База планируемой рассылки</h1> |
|
<p>Total users: {{ total_users }}</p> |
|
<div class="scroll-container"> |
|
<table> |
|
<tr> |
|
<th>Имя</th> |
|
<th>Телефон</th> |
|
<th>Почта</th> |
|
</tr> |
|
{% for contact in contacts %} |
|
<tr> |
|
<td>{{ contact[0] }}</td> |
|
<td>{{ contact[1] }}</td> |
|
<td>{{ contact[2] }}</td> |
|
</tr> |
|
{% endfor %} |
|
</table> |
|
</div> |
|
</body> |
|
</html> |