network_inventory/network_inventory/inventory/templates/inventory/computer_details.html

133 lines
3.4 KiB
HTML
Raw Normal View History

2017-12-25 13:38:31 +01:00
{% extends "inventory/base.html" %}
{% block section_title %}{{ computer.name }}{% endblock %}
{% block content %}
2019-08-02 13:39:14 +02:00
<div class="ui cards">
<div class="card">
<div class="content">
<div class="header">Description</div>
<div class="description"><p>{{ computer.description }}</p></div>
<table class="ui celled table">
<tr>
<th><b>OS:</b></th>
<td>{{ computer.os }}</td>
</tr>
<tr>
<th><b>Serial Number:</b></th>
<td>{{ computer.serialnumber }}</td>
</tr>
<tr>
<th><b>Category:</b></th>
<td>{{ computer.category }}</td>
</tr>
<tr>
<th><b>Owner:</b></th>
<td>{{ computer.owner }}</td>
</tr>
<tr>
<th><b>Customer:</b></th>
<td>{{ computer.customer }}</td>
</tr>
<tr>
<th><b>Manufacturer:</b></th>
<td>{{ computer.manufacturer }}</td>
</tr>
<tr>
<th><b>Location:</b></th>
<td>{{ computer.location }}</td>
</tr>
<tr>
<th><b>User:</b></th>
<td>{{ computer.user }}</td>
</tr>
<tr>
<th><b>Installation Date:</b></th>
<td>{{ computer.installation_date }}</td>
</tr>
<tr>
<th><b>IPs:</b></th>
<td>
{% for net_id, ip in computer.ips.items %}
<a href="{% url 'net' net_id %}">{{ip}}</a><br>
{% endfor %}
</td>
</tr>
</table>
2019-08-02 13:39:14 +02:00
</div>
</div>
{% if software_list %}
2019-08-02 13:39:14 +02:00
<div class="card">
<div class="content">
<div class="header">Software</div>
<ul>
{% for software in software_list %}
<li>{{ software.software }}</li>
{% endfor %}
</ul>
2019-08-02 13:39:14 +02:00
</div>
</div>
{% endif %}
2019-08-02 13:39:14 +02:00
<div class="card">
<div class="content">
<div class="header">Hardware</div>
<table class="ui celled table">
<tr>
<th><b>CPUs:</b></th>
<td>
2019-06-16 22:54:25 +02:00
{% if cpu_list %}
{% for cpu in cpu_list %}
{{ cpu.amount }}x {{ cpu.cpu }}<br>
2019-06-16 22:54:25 +02:00
{% endfor %}
</td>
</tr>
2019-06-16 22:54:25 +02:00
{% endif %}
<tr>
<th><b>RAM Modules:</b></th>
<td>
2019-06-16 22:54:25 +02:00
{% if ram_list %}
{% for module in ram_list %}
{{ module.amount }}x {{ module.ram }}<br>
2019-06-16 22:54:25 +02:00
{% endfor %}
</td>
</tr>
2019-06-16 22:54:25 +02:00
{% endif %}
<tr>
<th><b>Disks:</b></th>
<td>
{% if disks_list %}
{% for disk in disks_list %}
{{ disk.amount }}x {{ disk.disk }}<br>
{% endfor %}
</td>
</tr>
{% endif %}
</table>
{% if raid_relations %}
2019-08-02 13:39:14 +02:00
<div class="header">RAID</div>
{% for raid in raid_relations %}
2019-08-02 13:39:14 +02:00
<table class="ui celled table">
<tr>
<th><b>Type:</b></th>
<td>{{ raid.raid_type }}</td>
</tr>
<tr>
<th><b>Usable Space</b></th>
<td>{{ raid.usable_space}}</td>
</tr>
</table>
{% endfor %}
{% endif %}
2017-12-28 01:20:05 +01:00
{% if computer.host %}
2019-08-02 13:39:14 +02:00
<table class="ui celled table">
<th><b>Host:</b></th>
<td>
<a href="{% url 'computer' computer.host.id %}">{{ computer.host }}</a>
</td>
</tr>
</table>
2017-12-28 01:20:05 +01:00
{% endif %}
2019-08-02 13:39:14 +02:00
</div>
</div>
</div>
2017-12-25 13:38:31 +01:00
{% endblock %}