58 lines
1.9 KiB
Cheetah
58 lines
1.9 KiB
Cheetah
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<style>
|
|
table {
|
|
border-collapse: collapse;
|
|
border: 1px solid black;
|
|
width: 100%;
|
|
background-color: azure;
|
|
}
|
|
table th {
|
|
border: 1px solid black;
|
|
background-color: aquamarine;
|
|
}
|
|
table td {
|
|
border: 1px solid black;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<h2>Search users</h2>
|
|
<form method="POST">
|
|
<div>
|
|
<td><b>Поиск по префиксу имени и(или) фамилии</b></td>
|
|
<td><input type="text" name="pref" /></td>
|
|
<td><button>Search</button></td>
|
|
</div>
|
|
</form>
|
|
<br />
|
|
<div><b>Выбрано {{ .UsersFound }} учеток из {{ .UsersTotal }}</b> <b style="color: red;">{{ .msg }}</b></div>
|
|
<br />
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>Name</th>
|
|
<th>Years Old</th>
|
|
<th>Gender</th>
|
|
<th>City</th>
|
|
<th>Action</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{{ range $value:=.table }}
|
|
<tr>
|
|
<td><a>{{ $value.Name }} {{ $value.Surname }}</a></td>
|
|
<td><a>{{ $value.YearsOld }}</a></td>
|
|
<td><a>{{ $value.Gender }}</a></td>
|
|
<td><a>{{ $value.City }}</a></td>
|
|
<td><a href="/subscribe?id={{ $value.Id }}">Subscribe</a></td>
|
|
</tr>
|
|
{{ end }}
|
|
</tbody>
|
|
</table>
|
|
|
|
<h2>Available actions:</h2>
|
|
<input type="button" onclick="location.href='/';" value="Home" />
|
|
</body>
|
|
</html> |