2019-06-05 13:32:10 -04:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>Juice</title>
|
|
|
|
<link rel="stylesheet" type="text/css" href="/static/juice.css">
|
|
|
|
<script type="text/javascript" src="/static/juice.js"></script>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
{% for dev_type, devices in network.items() %}
|
|
|
|
{% for device in devices %}
|
2019-06-05 16:04:44 -04:00
|
|
|
<div class="device {{ dev_type }}" id="{{ device.id }}">
|
2019-06-05 13:32:10 -04:00
|
|
|
<div class="id">{{ device.id }}</div>
|
|
|
|
<div class="description">{{ device.description }}</div>
|
|
|
|
<div class="location">{{ device.location }}</div>
|
|
|
|
<div class="ip_address">{{ device.ip_address }}</div>
|
|
|
|
<div class="sub_devices">
|
|
|
|
{% for sub_dev_type, sub_devs in device.sub_devices.items() %}
|
|
|
|
{% for sub_dev in sub_devs %}
|
2019-06-05 16:04:44 -04:00
|
|
|
<div class="sub_device {{ sub_dev_type }}" id="{{ sub_dev.id }}">
|
2019-06-05 13:32:10 -04:00
|
|
|
<div class="id">{{ sub_dev.id }}</div>
|
2019-06-05 23:26:22 -04:00
|
|
|
<img class="outlet_image" src="/static/outlet.svg">
|
2019-06-05 13:32:10 -04:00
|
|
|
<div class="description">{{ sub_dev.description }}</div>
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
{% endfor %}
|
|
|
|
</body>
|
|
|
|
</html>
|