58 lines
1.7 KiB
Cheetah
58 lines
1.7 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">
|
|
<table>
|
|
<tr>
|
|
<td>Префиксу имени и(или) фамилии</td>
|
|
<td><input type="text" name="pref" /></td>
|
|
</tr>
|
|
</table>
|
|
<button>Search</button>
|
|
</form>
|
|
|
|
<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> |