2024-07-05 13:32:07 +00:00
|
|
|
{% extends "base.html" %}
|
|
|
|
{% load i18n %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<div class="row">
|
|
|
|
<div class="col">
|
2024-07-15 14:23:14 +00:00
|
|
|
<h3>{{ object.uuid }}</h3>
|
2024-07-05 13:32:07 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col">
|
|
|
|
<div class="nav nav-tabs nav-tabs-bordered">
|
|
|
|
<li class="nav-items">
|
|
|
|
<button class="nav-link active" data-bs-toggle="tab" data-bs-target="#details">General details</button>
|
|
|
|
</li>
|
|
|
|
<li class="nav-items">
|
|
|
|
<button class="nav-link" data-bs-toggle="tab" data-bs-target="#physicalproperties">Physical properties</button>
|
|
|
|
</li>
|
|
|
|
<li class="nav-items">
|
|
|
|
<button class="nav-link" data-bs-toggle="tab" data-bs-target="#documents">Documents</button>
|
|
|
|
</li>
|
|
|
|
<li class="nav-items">
|
|
|
|
<button class="nav-link" data-bs-toggle="tab" data-bs-target="#lots">Lots</button>
|
|
|
|
</li>
|
|
|
|
<li class="nav-items">
|
|
|
|
<button class="nav-link" data-bs-toggle="tab" data-bs-target="#status">Status</button>
|
|
|
|
</li>
|
|
|
|
<li class="nav-items">
|
|
|
|
<button class="nav-link" data-bs-toggle="tab" data-bs-target="#components">Components</button>
|
|
|
|
</li>
|
|
|
|
<li class="nav-items">
|
|
|
|
<button class="nav-link" data-bs-toggle="tab" data-bs-target="#traceabiliy">Traceability log</button>
|
|
|
|
</li>
|
|
|
|
<li class="nav-items">
|
|
|
|
<a class="nav-link" href="">Web</a>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="tab-content pt-2">
|
|
|
|
|
|
|
|
<div class="tab-pane fade show active" id="details">
|
|
|
|
<h5 class="card-title">Details</h5>
|
|
|
|
<div class="row mb-3">
|
|
|
|
<div class="col-lg-3 col-md-4 label ">
|
2024-07-15 14:23:14 +00:00
|
|
|
(<a href="{% url 'device:edit' object.uuid %}">Edit Device</a>)
|
2024-07-05 13:32:07 +00:00
|
|
|
</div>
|
|
|
|
<div class="col-lg-9 col-md-8">
|
2024-07-15 14:23:14 +00:00
|
|
|
{% if object.hid %}Snapshot{% else %}Placeholder{% endif %}
|
2024-07-05 13:32:07 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-3 col-md-4 label ">Phid</div>
|
2024-07-15 14:23:14 +00:00
|
|
|
<div class="col-lg-9 col-md-8">{{ object.uuid }}</div>
|
2024-07-05 13:32:07 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-3 col-md-4 label ">Id device internal</div>
|
|
|
|
<div class="col-lg-9 col-md-8"></div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-3 col-md-4 label ">Type</div>
|
|
|
|
<div class="col-lg-9 col-md-8">{{ object.type }}</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-3 col-md-4 label">Manufacturer</div>
|
2024-07-15 14:23:14 +00:00
|
|
|
<div class="col-lg-9 col-md-8">{{ object.device.manufacturer|default:"" }}</div>
|
2024-07-05 13:32:07 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-3 col-md-4 label">Model</div>
|
2024-07-15 14:23:14 +00:00
|
|
|
<div class="col-lg-9 col-md-8">{{ object.device.model|default:"" }}</div>
|
2024-07-05 13:32:07 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-3 col-md-4 label">Serial Number</div>
|
2024-07-15 14:23:14 +00:00
|
|
|
<div class="col-lg-9 col-md-8">{{ object.device.serialNumber|default:"" }}</div>
|
2024-07-05 13:32:07 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="tab-pane fade profile-overview" id="physicalproperties">
|
|
|
|
<h5 class="card-title">Physical Properties</h5>
|
|
|
|
<div class="row mb-3">
|
|
|
|
<div class="col-lg-3 col-md-4 label ">
|
2024-07-15 14:23:14 +00:00
|
|
|
(<a href="{% url 'device:physical_edit' object.uuid %}">Edit Physical Properties</a>)
|
2024-07-05 13:32:07 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2024-07-08 10:59:32 +00:00
|
|
|
{% if object.has_physical_properties %}
|
|
|
|
<div class="row">
|
2024-07-05 13:32:07 +00:00
|
|
|
<div class="col-lg-3 col-md-4 label ">
|
|
|
|
Weight:
|
|
|
|
</div>
|
|
|
|
<div class="col-lg-9 col-md-8">
|
2024-07-08 10:59:32 +00:00
|
|
|
{{ object.physicalproperties.weight }}
|
2024-07-05 13:32:07 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-3 col-md-4 label ">width:</div>
|
2024-07-08 10:59:32 +00:00
|
|
|
<div class="col-lg-9 col-md-8">
|
|
|
|
{{ object.physicalproperties.width }}
|
|
|
|
</div>
|
2024-07-05 13:32:07 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-3 col-md-4 label ">height:</div>
|
2024-07-08 10:59:32 +00:00
|
|
|
<div class="col-lg-9 col-md-8">
|
|
|
|
{{ object.physicalproperties.height }}
|
|
|
|
</div>
|
2024-07-05 13:32:07 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-3 col-md-4 label ">depth:</div>
|
2024-07-08 10:59:32 +00:00
|
|
|
<div class="col-lg-9 col-md-8">
|
|
|
|
{{ object.physicalproperties.depth }}
|
|
|
|
</div>
|
2024-07-05 13:32:07 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-3 col-md-4 label ">color:</div>
|
2024-07-08 10:59:32 +00:00
|
|
|
<div class="col-lg-9 col-md-8">
|
|
|
|
{{ object.physicalproperties.color }}
|
|
|
|
</div>
|
2024-07-05 13:32:07 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-3 col-md-4 label ">image:</div>
|
2024-07-08 10:59:32 +00:00
|
|
|
<div class="col-lg-9 col-md-8">
|
|
|
|
{% if object.physicalproperties.image %}
|
|
|
|
<img width="200px" src="{{ object.physicalproperties.image }}" />
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
2024-07-05 13:32:07 +00:00
|
|
|
</div>
|
2024-07-08 10:59:32 +00:00
|
|
|
{% endif %}
|
2024-07-05 13:32:07 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="tab-pane fade profile-overview" id="lots">
|
|
|
|
<h5 class="card-title">Incoming Lots</h5>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<h5 class="card-title">Outgoing Lots</h5>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<h5 class="card-title">Temporary Lots</h5>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="tab-pane fade profile-overview" id="documents">
|
|
|
|
<div class="btn-group dropdown ml-1 mt-1" uib-dropdown="">
|
|
|
|
<a href="/inventory/device/4W8D3/document/add/" class="btn btn-primary">
|
|
|
|
<i class="bi bi-plus"></i>
|
|
|
|
Add new document
|
|
|
|
<span class="caret"></span>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<h5 class="card-title">Documents</h5>
|
|
|
|
<table class="table">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th scope="col">File</th>
|
|
|
|
<th scope="col">Type</th>
|
|
|
|
<th scope="col">Description</th>
|
|
|
|
<th scope="col" data-type="date" data-format="YYYY-MM-DD hh:mm">Uploaded on</th>
|
|
|
|
<th></th>
|
|
|
|
<th></th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="tab-pane fade profile-overview" id="status">
|
|
|
|
<h5 class="card-title">Status Details</h5>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-3 col-md-4 label">Physical State</div>
|
|
|
|
<div class="col-lg-9 col-md-8">
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-3 col-md-4 label">Lifecycle State</div>
|
|
|
|
<div class="col-lg-9 col-md-8">
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-3 col-md-4 label">Allocated State</div>
|
|
|
|
<div class="col-lg-9 col-md-8">
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="tab-pane fade profile-overview" id="traceability">
|
|
|
|
<h5 class="card-title">Traceability log Details</h5>
|
|
|
|
<div class="list-group col-6">
|
|
|
|
|
|
|
|
<div class="list-group-item d-flex justify-content-between align-items-center">
|
|
|
|
Snapshot ✓
|
|
|
|
<small class="text-muted">14:07 23-06-2024</small>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="list-group-item d-flex justify-content-between align-items-center">
|
|
|
|
EraseCrypto ✓
|
|
|
|
<small class="text-muted">14:07 23-06-2024</small>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="list-group-item d-flex justify-content-between align-items-center">
|
|
|
|
EraseCrypto ✓
|
|
|
|
<small class="text-muted">14:07 23-06-2024</small>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="tab-pane fade profile-overview" id="components">
|
|
|
|
<h5 class="card-title">Components Snapshot</h5>
|
|
|
|
<div class="list-group col-6">
|
|
|
|
|
|
|
|
<div class="list-group-item">
|
|
|
|
<div class="d-flex w-100 justify-content-between">
|
|
|
|
<h5 class="mb-1">Motherboard</h5>
|
|
|
|
<small class="text-muted">14:07 23-06-2024</small>
|
|
|
|
</div>
|
|
|
|
<p class="mb-1">
|
|
|
|
hp<br />
|
|
|
|
890e<br />
|
|
|
|
</p>
|
|
|
|
<small class="text-muted">
|
|
|
|
</small>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="list-group-item">
|
|
|
|
<div class="d-flex w-100 justify-content-between">
|
|
|
|
<h5 class="mb-1">NetworkAdapter</h5>
|
|
|
|
<small class="text-muted">14:07 23-06-2024</small>
|
|
|
|
</div>
|
|
|
|
<p class="mb-1">
|
|
|
|
realtek semiconductor co., ltd.<br />
|
|
|
|
rtl8852ae 802.11ax pcie wireless network adapter<br />
|
|
|
|
</p>
|
|
|
|
<small class="text-muted">
|
|
|
|
</small>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|