1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

88 lines
3.2 KiB
HTML
Raw Normal View History

2016-03-01 11:23:03 -05:00
{% extends '_base.html' %}
{% block title %}{{ device }} - LLDP Neighbors{% endblock %}
{% block content %}
{% include 'dcim/inc/_device_header.html' with active_tab='inventory' %}
<div class="row">
<div class="col-md-4">
<div class="panel panel-default">
<div class="panel-heading">
<strong>Chassis</strong>
</div>
<table class="table table-hover panel-body">
<tr>
<td>Model</td>
<td>{{ device.device_type }}</td>
</tr>
<tr>
<td>Serial Number</td>
<td>{{ device.serial }}</td>
</tr>
</table>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<strong>Software</strong>
</div>
<table class="table table-hover panel-body" id="software">
<thead>
<tr>
<th>Package</th>
<th>Version</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
<div class="col-md-8">
<div class="panel panel-default">
<div class="panel-heading">
<strong>Hardware</strong>
</div>
<table class="table table-hover panel-body" id="hardware">
<thead>
<tr>
<th>Module</th>
<th>Part Number</th>
<th>Serial Number</th>
</tr>
</thead>
<tbody>
{% for m in modules %}
2016-03-01 11:23:03 -05:00
<tr>
<td>{{ m.name }}</td>
<td>{{ m.part_id }}</td>
<td>{{ m.serial }}</td>
2016-03-01 11:23:03 -05:00
</tr>
{% for m2 in m.submodules.all %}
<tr>
<td style="padding-left: 20px">{{ m2.name }}</td>
<td>{{ m2.part_id }}</td>
<td>{{ m2.serial }}</td>
</tr>
{% for m3 in m2.submodules.all %}
<tr>
<td style="padding-left: 40px">{{ m3.name }}</td>
<td>{{ m3.part_id }}</td>
<td>{{ m3.serial }}</td>
</tr>
{% for m4 in m3.submodules.all %}
<tr>
<td style="padding-left: 60px">{{ m4.name }}</td>
<td>{{ m4.part_id }}</td>
<td>{{ m4.serial }}</td>
</tr>
{% endfor %}
{% endfor %}
{% endfor %}
2016-03-01 11:23:03 -05:00
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
{% endblock %}