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">
|
2020-02-25 22:27:58 +01:00
|
|
|
<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
|
|
|
|
2020-02-25 22:27:58 +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
|
|
|
|
2020-02-25 22:27:58 +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">
|
2020-02-25 22:27:58 +01:00
|
|
|
<div class="col">
|
|
|
|
<div class="card mt-3">
|
2020-02-25 21:17:59 +01:00
|
|
|
<div class="card-body">
|
|
|
|
<h2>Host</h2>
|
2020-06-08 22:11:49 +02:00
|
|
|
{% if device.host %}
|
2020-02-25 21:17:59 +01:00
|
|
|
<ul>
|
2020-06-28 17:17:39 +02:00
|
|
|
<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>
|
2020-02-25 21:17:59 +01:00
|
|
|
</ul>
|
2020-06-08 22:11:49 +02:00
|
|
|
{% else %}
|
2020-06-28 17:17:39 +02:00
|
|
|
<p><a href="{% url 'computer_update' pk %}" class="add" title="Add" data-toggle="tooltip"><i class="material-icons">add</i></a></p>
|
2020-02-25 21:17:59 +01:00
|
|
|
{% endif %}
|
2020-02-16 14:47:56 +01:00
|
|
|
|
2020-02-25 21:17:59 +01:00
|
|
|
<h2>Operating System</h2>
|
2020-06-08 22:11:49 +02:00
|
|
|
{% if device.os %}
|
2020-02-25 21:17:59 +01:00
|
|
|
<ul>
|
2020-06-28 17:17:39 +02:00
|
|
|
<li>
|
|
|
|
{{ device.os }}
|
|
|
|
<a href="{% url 'computer_update' pk %}" class="edit" title="Edit" data-toggle="tooltip"><i class="material-icons">edit</i></a>
|
|
|
|
</li>
|
2020-02-25 21:17:59 +01:00
|
|
|
</ul>
|
2020-06-08 22:11:49 +02:00
|
|
|
{% else %}
|
2020-06-28 17:17:39 +02:00
|
|
|
<p><a href="{% url 'computer_update' pk %}" class="add" title="Add" data-toggle="tooltip"><i class="material-icons">add</i></a></p>
|
2020-02-25 21:17:59 +01:00
|
|
|
{% endif %}
|
2020-02-16 14:20:06 +01:00
|
|
|
|
2020-02-25 21:17:59 +01:00
|
|
|
<h2>Software</h2>
|
|
|
|
<ul>
|
2020-06-28 19:12:49 +02:00
|
|
|
{% 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>
|
2020-02-25 21:17:59 +01:00
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
2020-06-28 19:04:55 +02:00
|
|
|
<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
|
|
|
|
2020-02-25 21:17:59 +01:00
|
|
|
{% block license %}
|
|
|
|
{% include "licenses/license_block.html" %}
|
|
|
|
{% endblock %}
|
2020-02-16 14:20:06 +01:00
|
|
|
|
2020-02-25 21:17:59 +01:00
|
|
|
<h2>Backup</h2>
|
|
|
|
<ul>
|
|
|
|
{% for backup in backup_relations %}
|
2020-06-29 13:20:19 +02:00
|
|
|
<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>
|
2020-02-25 21:17:59 +01:00
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
2020-06-29 13:20:19 +02:00
|
|
|
<p><a href="{% url 'backup_create' pk %}" class="add" title="Add" data-toggle="tooltip"><i class="material-icons">add</i></a></p>
|
2020-06-08 22:11:49 +02:00
|
|
|
|
2020-02-25 21:17:59 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2019-08-02 13:39:14 +02:00
|
|
|
</div>
|
2019-08-02 14:19:08 +02:00
|
|
|
|
2020-02-25 22:27:58 +01:00
|
|
|
<div class="col">
|
|
|
|
<div class="card mt-3">
|
2020-02-25 21:17:59 +01:00
|
|
|
<h2 class="card-header">Hardware</h2>
|
|
|
|
<div class="card-body">
|
2020-06-08 22:11:49 +02:00
|
|
|
<p><b>CPUs:</b></p>
|
|
|
|
{% for cpu in cpu_relations %}
|
2020-06-15 21:38:21 +02:00
|
|
|
{{ 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>
|
2020-06-08 22:11:49 +02:00
|
|
|
{% endfor %}
|
2020-06-15 21:38:21 +02:00
|
|
|
<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
|
|
|
|
2020-06-08 22:11:49 +02:00
|
|
|
<p><b>GPUs:</b></p>
|
|
|
|
{% for gpu in gpu_relations %}
|
2020-06-15 21:39:31 +02:00
|
|
|
{{ 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>
|
2020-06-08 22:11:49 +02:00
|
|
|
{% endfor %}
|
2020-06-15 21:39:31 +02:00
|
|
|
<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
|
|
|
|
2020-06-08 22:11:49 +02:00
|
|
|
<p><b>RAM Modules:</b></p>
|
|
|
|
{% for module in ram_relations %}
|
2020-06-09 21:59:20 +02:00
|
|
|
{{ 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>
|
2020-06-08 22:11:49 +02:00
|
|
|
{% endfor %}
|
2020-06-09 21:59:20 +02:00
|
|
|
<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
|
|
|
|
2020-06-08 22:11:49 +02:00
|
|
|
<p><b>Disks:</b></p>
|
|
|
|
{% for disk in disks_relations %}
|
2020-06-15 21:39:58 +02:00
|
|
|
{{ 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>
|
2020-06-08 22:11:49 +02:00
|
|
|
{% endfor %}
|
2020-06-15 21:39:58 +02:00
|
|
|
<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
|
|
|
|
2020-02-25 21:17:59 +01: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 %}
|
2020-06-08 22:11:49 +02:00
|
|
|
<p><a href="{% url 'warranty_create' pk %}" class="add" title="Add" data-toggle="tooltip"><i class="material-icons">add</i></a></p>
|
2020-02-25 21:17:59 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2019-08-02 13:39:14 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2017-12-25 13:38:31 +01:00
|
|
|
{% endblock %}
|