[项目] server.templates.server_detail.html(LOAMAW v1.0)

<!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>detail</title>
</head>
<body>


        <table>
            <tr>

                <td>
                {% for servers in tserver %}
                <form action="/server/server_detail/?server_name={{ servers.server_name }}" method="POST">
                {% csrf_token %}
                    <select name="trefresh">
                        <option value="single thread">refresh option: now(single thread)</option>
                        <option value="multi thread">refresh option: delay(multi thread)</option>
                        <input type='submit' value="refresh">
                    </select>
                </form>
                {% endfor %}

                <td>
                <form action="/server/server_list"> 
                <input type="submit" value="return"/> 
                </form>
                </td>

                <td>

            </tr>
        </table>

    <table border="1" cellspacing="0" width="550px">
        <tr>
            <th>Code</th>
            <th>Server Name</th>
            <th>Server Main_IP</th>
            <th>Server Status</th>
        </tr>
        {% for servers in tserver %}
            <tr>
                <td>{{ forloop.counter }}</td>
                <td>{{ servers.server_name }}</td>
                <td>{{ servers.server_main_ip }}</td>
                <td>{{ servers.server_status }}</td>
            <tr>
        {% endfor %}
    </table>

<br/>

    <table border="1" cellspacing="0" width="550px">
        <tr>
            <th>OS Distributor</th>
            <th>OS Release</th>
            <th>OS Kernel</th>
            <th>OS Uptime</th>
            <th>OS Status</th>
        </tr>
        {% for oss in tos %}
            <tr>
                <td>{{ oss.os_distributor }}</td>
                <td>{{ oss.os_release }}</td>
                <td>{{ oss.os_kernel }}</td>
                <td>{{ oss.os_uptime }}</td>
                <td>{{ oss.os_status }}</td>           
            </tr>
        {% endfor %}
    </table>

<br/>

    <table border="1" cellspacing="0" width="550px">
        <tr>
            <th>CPU QTY</th>
            <th>CPU Core</th>
            <th>CPU Usage</th>
            <th>CPU Idleness</th>
            <th>CPU Status</th>
        </tr>
        {% for cpus in tcpu %}
            <tr>
                <td>{{ cpus.cpu_qty }}</td>
                <td>{{ cpus.cpu_core }}</td>
                <td>{{ cpus.cpu_usage }}%</td>
                <td>{{ cpus.cpu_idleness }}%</td>
                <td>{{ cpus.cpu_status }}</td>
            </tr>
        {% endfor %}
    </table>

<br/>

    <table border="1" cellspacing="0" width="550px">
        <tr>
            <th>Mem Size</th>
            <th>Mem Usage</th>
            <th>Mem Idleness</th>
            <th>Mem Status</th>
        </tr>
        {% for mems in tmem %}
            <tr>
                <td>{{ mems.mem_size }}K</td>
                <td>{{ mems.mem_usage }}K</td>
                <td>{{ mems.mem_idleness }}K</td>
                <td>{{ mems.mem_status }}</td>
            </tr>
        {% endfor %}
    </table>

<br/>

    <table border="1" cellspacing="0" width="550px">
        <tr>
            <th>Space Name</th>
            <th>Space Size</th>
            <th>Space Usage</th>
            <th>Space Idleness</th>
            <th>Space Mount</th>
            <th>Space Status</th>
        </tr>
        {% for spaces in tspace %}
            <tr>
                <td>{{ spaces.space_name }}</td>
                <td>{{ spaces.space_size }}K</td>
                <td>{{ spaces.space_usage }}K</td>
                <td>{{ spaces.space_idleness }}K</td>
                <td>{{ spaces.space_mount }}</td>
                <td>{{ spaces.space_status }}</td>
            </tr>
        {% endfor %}
    </table>

<br/>

    <table border="1" cellspacing="0" width="550px">
        <tr>
            <th>NC Name</th>
            <th>NC IP</th>
            <th>NC Status</th>
        </tr>
        {% for ncs in tnc %}
            <tr>
                <td>{{ ncs.nc_name }}</td>
                <td>{{ ncs.nc_ip }}</td>
                <td>{{ ncs.nc_status }}</td>
            </tr>
        {% endfor %}
    </table>

<br/>

    <table border="1" cellspacing="0" width="550px">
        <tr>
            <th>Admin Name</th>
            <th>Admin GID</th>
            <th>Admin Email</th>
            <th>Admin Phone</th>
            <th>Admin Status</th>
        </tr>
        {% for admins in tsdadmin %}
            <tr>
                <td>{{ admins.admin_name }}</td>
                <td>{{ admins.admin_gid }}</td>
                <td>{{ admins.admin_email }}</td>
                <td>{{ admins.admin_phone }}</td>
                <td>{{ admins.admin_status }}</td>
            <tr>
        {% endfor %}

</table>

</body>
</html>