2019-06-05 13:32:10 -04:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
2019-06-18 12:49:01 -04:00
|
|
|
<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>
|
|
|
|
<main>
|
|
|
|
<div id="devices">
|
|
|
|
{% for dev_type, devices in network.items() %}
|
|
|
|
{% for device in devices %}
|
|
|
|
<div class="device {{ dev_type }}" id="{{ device.id }}">
|
|
|
|
<div class="id">{{ device.id }}</div>
|
|
|
|
<div class="description"><span class="field_value">{{ device.description }}</span> <span class="edit" onclick="edit_field(this.parentElement)"></span></div>
|
|
|
|
<div class="location"><span class="field_value">{{ device.location }}</span> <span class="edit" onclick="edit_field(this.parentElement)"></span></div>
|
|
|
|
<div class="ip_address"><i>{{ device.ip_address }}</i></div>
|
|
|
|
<div class="sub_devices">
|
|
|
|
{% for sub_dev_type, sub_devs in device.sub_devices.items() %}
|
|
|
|
{% for sub_dev in sub_devs %}
|
|
|
|
<div class="sub_device {{ sub_dev_type }}" id="{{ sub_dev.id }}">
|
|
|
|
<div class="id">{{ sub_dev.id }}</div>
|
|
|
|
<object class="outlet_image" data="/static/outlet.svg"></object>
|
|
|
|
<div class="description"><span class="field_value">{{ sub_dev.description }}</span> <span class="edit" onclick="edit_field(this.parentElement)"></span></div>
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
2019-06-16 18:22:47 -04:00
|
|
|
</div>
|
2019-06-18 12:49:01 -04:00
|
|
|
{% endfor %}
|
|
|
|
{% endfor %}
|
2019-06-05 13:32:10 -04:00
|
|
|
</div>
|
2019-06-18 12:49:01 -04:00
|
|
|
</main>
|
|
|
|
</body>
|
2019-06-05 13:32:10 -04:00
|
|
|
</html>
|