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

75 lines
2.6 KiB
HTML
Raw Normal View History

2016-03-01 11:23:03 -05:00
{% extends '_base.html' %}
2016-05-23 17:18:48 -04:00
{% block title %}{{ device }} - Inventory{% endblock %}
2016-03-01 11:23:03 -05:00
{% block content %}
2017-01-05 15:31:41 -05:00
{% include 'dcim/inc/device_header.html' with active_tab='inventory' %}
2016-03-01 11:23:03 -05:00
<div class="row">
<div class="col-md-4">
<div class="panel panel-default">
<div class="panel-heading">
<strong>Chassis</strong>
</div>
2016-12-14 17:09:33 -05:00
<table class="table table-hover panel-body attr-table">
2016-03-01 11:23:03 -05:00
<tr>
<td>Model</td>
<td>{{ device.device_type.full_name }}</td>
2016-03-01 11:23:03 -05:00
</tr>
<tr>
<td>Serial Number</td>
<td>
{% if device.serial %}
<span>{{ device.serial }}</span>
{% else %}
<span class="text-muted">N/A</span>
{% endif %}
</td>
</tr>
<tr>
<td>Asset Tag</td>
<td>
{% if device.asset_tag %}
<span>{{ device.asset_tag }}</span>
{% else %}
<span class="text-muted">N/A</span>
{% endif %}
</td>
2016-03-01 11:23:03 -05:00
</tr>
</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 table-condensed panel-body" id="hardware">
2016-03-01 11:23:03 -05:00
<thead>
<tr>
<th>Name</th>
<th></th>
<th>Manufacturer</th>
2016-03-01 11:23:03 -05:00
<th>Part Number</th>
<th>Serial Number</th>
<th></th>
2016-03-01 11:23:03 -05:00
</tr>
</thead>
<tbody>
{% for item in inventory_items %}
{% with template_name='dcim/inc/inventoryitem.html' indent=0 %}
{% include template_name %}
{% endwith %}
2016-03-01 11:23:03 -05:00
{% endfor %}
</tbody>
</table>
</div>
{% if perms.dcim.add_inventoryitem %}
<a href="{% url 'dcim:inventoryitem_add' device=device.pk %}" class="btn btn-success">
<span class="fa fa-plus" aria-hidden="true"></span>
Add Inventory Item
</a>
{% endif %}
2016-03-01 11:23:03 -05:00
</div>
</div>
{% endblock %}