2020-01-11 17:41:03 +01:00
|
|
|
{% extends "core/base.html" %}
|
2020-01-01 19:59:05 +01:00
|
|
|
{% block section_title %}{{ computer }}{% endblock %}
|
2017-12-25 13:38:31 +01:00
|
|
|
{% 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">
|
2019-07-30 23:17:56 +02:00
|
|
|
<tr>
|
2020-01-03 03:30:31 +01:00
|
|
|
<td><b>OS:</b></td>
|
2019-07-30 23:17:56 +02:00
|
|
|
<td>{{ computer.os }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2020-01-03 03:30:31 +01:00
|
|
|
<td><b>Serial Number:</b></td>
|
2019-12-28 15:22:12 +01:00
|
|
|
<td><code>{{ computer.serialnumber }}</code></td>
|
2019-07-30 23:17:56 +02:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2020-01-03 03:30:31 +01:00
|
|
|
<td><b>Category:</b></td>
|
2019-07-30 23:17:56 +02:00
|
|
|
<td>{{ computer.category }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2020-01-03 03:30:31 +01:00
|
|
|
<td><b>Owner:</b></td>
|
2019-07-30 23:17:56 +02:00
|
|
|
<td>{{ computer.owner }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2020-01-03 03:30:31 +01:00
|
|
|
<td><b>Customer:</b></td>
|
2019-09-24 20:31:01 +02:00
|
|
|
<td><a href="{% url 'customer' computer.customer.id %}">{{ computer.customer }}</a></td>
|
2019-07-30 23:17:56 +02:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2020-01-03 03:30:31 +01:00
|
|
|
<td><b>Manufacturer:</b></td>
|
2019-07-30 23:17:56 +02:00
|
|
|
<td>{{ computer.manufacturer }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2020-01-03 03:30:31 +01:00
|
|
|
<td><b>Location:</b></td>
|
2019-07-30 23:17:56 +02:00
|
|
|
<td>{{ computer.location }}</td>
|
|
|
|
</tr>
|
2020-01-01 19:59:05 +01:00
|
|
|
{% if computer.user %}
|
2019-07-30 23:17:56 +02:00
|
|
|
<tr>
|
2020-01-03 03:30:31 +01:00
|
|
|
<td><b>User:</b></td>
|
2020-01-01 19:59:05 +01:00
|
|
|
<td><a href="{% url 'user' computer.user.id %}">{{ computer.user }}</a></td>
|
2019-07-30 23:17:56 +02:00
|
|
|
</tr>
|
2020-01-01 19:59:05 +01:00
|
|
|
{% endif %}
|
2019-07-30 23:17:56 +02:00
|
|
|
<tr>
|
2020-01-03 03:30:31 +01:00
|
|
|
<td><b>Installation Date:</b></td>
|
2019-07-30 23:17:56 +02:00
|
|
|
<td>{{ computer.installation_date }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2020-01-03 03:30:31 +01:00
|
|
|
<td><b>IPs:</b></td>
|
2019-07-30 23:17:56 +02:00
|
|
|
<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>
|
2020-01-12 16:55:16 +01:00
|
|
|
{% if software_relations or backup_relations or license_list %}
|
2019-08-02 13:39:14 +02:00
|
|
|
<div class="card">
|
|
|
|
<div class="content">
|
2020-01-12 16:55:16 +01:00
|
|
|
{% if software_relations %}
|
2019-08-02 13:39:14 +02:00
|
|
|
<div class="header">Software</div>
|
2019-07-30 23:17:56 +02:00
|
|
|
<ul>
|
2020-01-12 16:55:16 +01:00
|
|
|
{% for relation in software_relations %}
|
|
|
|
<li>{{ relation.software }}</li>
|
2019-07-30 23:17:56 +02:00
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
2019-08-02 14:31:55 +02:00
|
|
|
{% endif %}
|
2020-01-12 16:55:16 +01:00
|
|
|
{% if license_list %}
|
2020-01-03 03:34:25 +01:00
|
|
|
<div class="header">Licenses</div>
|
|
|
|
<table class="ui celled table">
|
2020-01-12 16:55:16 +01:00
|
|
|
{% for license in license_list %}
|
2020-01-03 03:34:25 +01:00
|
|
|
<tr>
|
|
|
|
<td>{{ license.license.software }}</td>
|
|
|
|
<td><code>{{ license.license.key }}</code></td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
|
|
|
{% endif %}
|
2020-01-12 16:55:16 +01:00
|
|
|
{% if backup_relations %}
|
2019-08-02 14:31:55 +02:00
|
|
|
<div class="header">Backup</div>
|
|
|
|
<ul>
|
2020-01-12 16:55:16 +01:00
|
|
|
{% for backup in backup_relations %}
|
2019-08-02 14:31:55 +02:00
|
|
|
<li><a href="{% url 'backup' backup.id %}">{{ backup }}</a></li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
{% endif %}
|
2019-08-02 13:39:14 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2019-07-30 23:17:56 +02:00
|
|
|
{% endif %}
|
2019-08-02 14:19:08 +02:00
|
|
|
|
2020-02-16 12:57:53 +01:00
|
|
|
{% if warranty_relations %}
|
|
|
|
<div class="card">
|
|
|
|
<div class="content">
|
|
|
|
{% if warranty_relations %}
|
|
|
|
<div class="header">Warranty</div>
|
|
|
|
<table class="ui celled table">
|
|
|
|
<tr>
|
|
|
|
<td><b>Warranty:</b></td>
|
|
|
|
{% for warranty in warranty_relations %}
|
|
|
|
<td>
|
|
|
|
{{ warranty.valid_from }}<br>
|
|
|
|
</td>
|
|
|
|
{% endfor %}
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
|
2020-01-12 16:55:16 +01:00
|
|
|
{% if cpu_relations or ram_relations or disks_relations or raid_disk_pairs or computer.host %}
|
2019-08-02 13:39:14 +02:00
|
|
|
<div class="card">
|
|
|
|
<div class="content">
|
2020-01-12 16:55:16 +01:00
|
|
|
{% if cpu_relations or ram_relations or disks_relations or computer.host %}
|
2019-08-02 13:39:14 +02:00
|
|
|
<div class="header">Hardware</div>
|
|
|
|
<table class="ui celled table">
|
2020-01-12 16:55:16 +01:00
|
|
|
{% if cpu_relations %}
|
2019-07-30 23:17:56 +02:00
|
|
|
<tr>
|
2020-01-03 03:30:31 +01:00
|
|
|
<td><b>CPUs:</b></td>
|
2019-07-30 23:17:56 +02:00
|
|
|
<td>
|
2020-01-12 16:55:16 +01:00
|
|
|
{% for cpu in cpu_relations %}
|
2019-07-30 23:17:56 +02:00
|
|
|
{{ cpu.amount }}x {{ cpu.cpu }}<br>
|
2019-06-16 22:54:25 +02:00
|
|
|
{% endfor %}
|
2019-07-30 23:17:56 +02:00
|
|
|
</td>
|
|
|
|
</tr>
|
2019-06-16 22:54:25 +02:00
|
|
|
{% endif %}
|
2020-01-12 16:55:16 +01:00
|
|
|
{% if ram_relations %}
|
2019-07-30 23:17:56 +02:00
|
|
|
<tr>
|
2020-01-03 03:30:31 +01:00
|
|
|
<td><b>RAM Modules:</b></td>
|
2019-07-30 23:17:56 +02:00
|
|
|
<td>
|
2020-01-12 16:55:16 +01:00
|
|
|
{% for module in ram_relations %}
|
2019-07-30 23:17:56 +02:00
|
|
|
{{ module.amount }}x {{ module.ram }}<br>
|
2019-06-16 22:54:25 +02:00
|
|
|
{% endfor %}
|
2019-07-30 23:17:56 +02:00
|
|
|
</td>
|
|
|
|
</tr>
|
2019-06-16 22:54:25 +02:00
|
|
|
{% endif %}
|
2020-01-12 16:55:16 +01:00
|
|
|
{% if disks_relations %}
|
2019-07-30 23:17:56 +02:00
|
|
|
<tr>
|
2020-01-03 03:30:31 +01:00
|
|
|
<td><b>Disks:</b></td>
|
2019-07-30 23:17:56 +02:00
|
|
|
<td>
|
2020-01-12 16:55:16 +01:00
|
|
|
{% for disk in disks_relations %}
|
2019-07-30 23:17:56 +02:00
|
|
|
{{ disk.amount }}x {{ disk.disk }}<br>
|
2017-12-26 11:13:14 +01:00
|
|
|
{% endfor %}
|
2019-07-30 23:17:56 +02:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{% endif %}
|
|
|
|
</table>
|
2020-01-03 20:20:50 +01:00
|
|
|
{% endif %}
|
2019-08-02 14:19:08 +02:00
|
|
|
|
2020-01-03 03:29:44 +01:00
|
|
|
{% if raid_disk_pairs %}
|
2019-08-02 13:39:14 +02:00
|
|
|
<div class="header">RAID</div>
|
2020-01-03 03:29:44 +01:00
|
|
|
{% for raid, disks in raid_disk_pairs.items %}
|
2019-08-02 13:39:14 +02:00
|
|
|
<table class="ui celled table">
|
2019-07-30 23:17:56 +02:00
|
|
|
<tr>
|
2020-01-03 03:30:31 +01:00
|
|
|
<td><b>Type:</b></td>
|
2019-07-30 23:17:56 +02:00
|
|
|
<td>{{ raid.raid_type }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2020-01-03 03:30:31 +01:00
|
|
|
<td><b>Usable Space</b></td>
|
2020-01-03 03:30:41 +01:00
|
|
|
<td>{{ raid.usable_space }}</td>
|
2019-07-30 23:17:56 +02:00
|
|
|
</tr>
|
2020-01-03 03:29:44 +01:00
|
|
|
{% 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 %}
|
2019-07-30 23:17:56 +02:00
|
|
|
</table>
|
|
|
|
{% endfor %}
|
2017-12-26 11:13:14 +01:00
|
|
|
{% endif %}
|
2019-08-02 14:19:08 +02:00
|
|
|
|
2017-12-28 01:20:05 +01:00
|
|
|
{% if computer.host %}
|
2019-08-02 14:19:08 +02:00
|
|
|
<div class="header">Host</div>
|
|
|
|
<div class="description">
|
2019-07-30 23:17:56 +02:00
|
|
|
<a href="{% url 'computer' computer.host.id %}">{{ computer.host }}</a>
|
2019-08-02 14:19:08 +02:00
|
|
|
</div>
|
2017-12-28 01:20:05 +01:00
|
|
|
{% endif %}
|
2019-08-02 13:39:14 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2019-08-02 14:19:08 +02:00
|
|
|
{% endif %}
|
|
|
|
|
2019-08-02 13:39:14 +02:00
|
|
|
</div>
|
2017-12-25 13:38:31 +01:00
|
|
|
{% endblock %}
|