network_inventory/computers/templates/computers/computer_details.html

135 lines
6.2 KiB
HTML
Raw Normal View History

2020-01-11 17:41:03 +01:00
{% extends "core/base.html" %}
2020-02-16 14:20:06 +01:00
{% block section_title %}{{ device }}{% endblock %}
2017-12-25 13:38:31 +01:00
{% block content %}
2020-02-25 21:53:57 +01:00
<div class="row">
<div class="col">
2020-02-16 14:20:06 +01:00
{% block device_details %}
2020-02-16 14:47:29 +01:00
{% include "devices/device_details_block.html" %}
2020-02-16 14:20:06 +01:00
{% endblock %}
2020-02-25 20:25:20 +01:00
</div>
2020-02-16 14:20:06 +01:00
<div class="col">
2020-02-16 14:20:06 +01:00
{% block warranty %}
{% include "devices/warranty_block.html" %}
{% endblock %}
2020-02-25 20:25:20 +01:00
</div>
2020-02-16 14:20:06 +01:00
<div class="col">
2020-02-16 14:47:56 +01:00
{% block ips %}
{% include "devices/ip_block.html" %}
{% endblock %}
2020-02-25 20:25:20 +01:00
</div>
2020-02-25 21:53:57 +01:00
</div>
2020-02-25 20:25:20 +01:00
2020-02-27 22:13:36 +01:00
<div class="row">
<div class="col">
<div class="card mt-3">
<div class="card-body">
<h2>Host</h2>
{% if device.host %}
<ul>
<li>
<a href="{% url 'computer' device.host.id %}">{{ device.host }}</a>
<a href="{% url 'computer_update' pk %}" class="edit" title="Edit" data-toggle="tooltip"><i class="material-icons">edit</i></a>
</li>
</ul>
{% else %}
<p><a href="{% url 'computer_update' pk %}" class="add" title="Add" data-toggle="tooltip"><i class="material-icons">add</i></a></p>
{% endif %}
2020-02-16 14:47:56 +01:00
<h2>Operating System</h2>
{% if device.os %}
<ul>
<li>
{{ device.os }}
<a href="{% url 'computer_update' pk %}" class="edit" title="Edit" data-toggle="tooltip"><i class="material-icons">edit</i></a>
</li>
</ul>
{% else %}
<p><a href="{% url 'computer_update' pk %}" class="add" title="Add" data-toggle="tooltip"><i class="material-icons">add</i></a></p>
{% endif %}
2020-02-16 14:20:06 +01:00
<h2>Software</h2>
<ul>
{% for software in software_relations %}
<li>{{ software.software }} <a href="{% url 'software_relation_delete' software.pk %}" class="delete" title="Delete" data-toggle="tooltip"><i class="material-icons">clear</i></a></li>
{% endfor %}
</ul>
<p><a href="{% url 'software_relation_create' pk %}" class="add" title="Add" data-toggle="tooltip"><i class="material-icons">add</i></a></p>
2020-02-16 14:20:06 +01:00
{% block license %}
{% include "licenses/license_block.html" %}
{% endblock %}
2020-02-16 14:20:06 +01:00
<h2>Backup</h2>
<ul>
{% for backup in backup_relations %}
<li><a href="{% url 'backup' backup.id %}">{{ backup }}</a> <a href="{% url 'backup_delete' backup.pk %}" class="delete" title="Delete" data-toggle="tooltip"><i class="material-icons">clear</i></a></li>
{% endfor %}
</ul>
<p><a href="{% url 'backup_create' pk %}" class="add" title="Add" data-toggle="tooltip"><i class="material-icons">add</i></a></p>
</div>
</div>
2019-08-02 13:39:14 +02:00
</div>
2019-08-02 14:19:08 +02:00
<div class="col">
<div class="card mt-3">
<h2 class="card-header">Hardware</h2>
<div class="card-body">
<p><b>CPUs:</b></p>
{% for cpu in cpu_relations %}
{{ cpu.amount }}x {{ cpu.cpu }} <a href="{% url 'cpu_relation_delete' cpu.pk %}" class="delete" title="Delete" data-toggle="tooltip"><i class="material-icons">clear</i></a><br>
{% endfor %}
<p><a href="{% url 'cpu_relation_create' pk %}" class="add" title="Add" data-toggle="tooltip"><i class="material-icons">add</i></a></p>
2020-04-30 15:40:00 +02:00
<p><b>GPUs:</b></p>
{% for gpu in gpu_relations %}
{{ gpu.amount }}x {{ gpu.gpu }} <a href="{% url 'gpu_relation_delete' gpu.pk %}" class="delete" title="Delete" data-toggle="tooltip"><i class="material-icons">clear</i></a><br>
{% endfor %}
<p><a href="{% url 'gpu_relation_create' pk %}" class="add" title="Add" data-toggle="tooltip"><i class="material-icons">add</i></a></p>
2020-02-16 14:20:06 +01:00
<p><b>RAM Modules:</b></p>
{% for module in ram_relations %}
{{ module.amount }}x {{ module.ram }} <a href="{% url 'ram_relation_delete' module.pk %}" class="delete" title="Delete" data-toggle="tooltip"><i class="material-icons">clear</i></a><br>
{% endfor %}
<p><a href="{% url 'ram_relation_create' pk %}" class="add" title="Add" data-toggle="tooltip"><i class="material-icons">add</i></a></p>
2019-08-02 14:19:08 +02:00
<p><b>Disks:</b></p>
{% for disk in disks_relations %}
{{ disk.amount }}x {{ disk.disk }} <a href="{% url 'disk_relation_delete' disk.pk %}" class="delete" title="Delete" data-toggle="tooltip"><i class="material-icons">clear</i></a><br>
{% endfor %}
<p><a href="{% url 'disk_relation_create' pk %}" class="add" title="Add" data-toggle="tooltip"><i class="material-icons">add</i></a></p>
2019-08-02 14:19:08 +02:00
<h3>RAID</h3>
{% for raid, disks in raid_disk_pairs.items %}
<table class="table table-bordered">
<tr>
<td><b>Type:</b></td>
<td>{{ raid.raid_type }}</td>
</tr>
<tr>
<td><b>Usable Space</b></td>
<td>{{ raid.usable_space }}</td>
</tr>
{% if disks %}
{% for disk in disks %}
<tr>
<td><b>Disk Type</b></td>
<td>{{ disk.disk }}</td>
</tr>
<tr>
<td><b>Amount</b></td>
<td>{{ disk.disk_amount }}</td>
</tr>
{% endfor %}
{% endif %}
</table>
{% endfor %}
<p><a href="{% url 'warranty_create' pk %}" class="add" title="Add" data-toggle="tooltip"><i class="material-icons">add</i></a></p>
</div>
</div>
2019-08-02 13:39:14 +02:00
</div>
</div>
2017-12-25 13:38:31 +01:00
{% endblock %}