<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>server</title>
</head>
<body>
<table>
<tr>
<td>
<form action="/server/server_register">
<input type="submit" value="server_register"/>
</form>
</td>
<td>
<form action="/server/admin_register">
<input type="submit" value="admin_register"/>
</form>
</td>
<td>
<form action="/server/server_bind_admin">
<input type="submit" value="server_bind_admin"/>
</form>
</td>
<form action="/server/server_list/" method="POST">
{% csrf_token %}
<td>
<input type="submit" value="refresh"/>
</td>
<tr>
<table>
<table border="1" cellspacing="0" width="550px">
<tr>
<th>Choice</th>
<th>Code</th>
<th>Server Name</th>
<th>Server Main_IP</th>
<th>Server Status</th>
<th>Server Detail</th>
</tr>
{% for servers in tserver_all %}
<tr>
<td><input type="checkbox" name="tserver_name_choice" value="{{ servers.server_name }}"/></td>
<td>{{ forloop.counter }}</td>
<td>{{ servers.server_name }}</td>
<td>{{ servers.server_main_ip }}</td>
<td>{{ servers.server_status }}</td>
<td>
<a href="/server/server_detail/?server_name={{ servers.server_name }}">detail</a>
</td>
<tr>
{% endfor %}
</form>
</table>
</body>
</html>