2022-07-29 15:02:27 +00:00
|
|
|
{% extends "ereuse_devicehub/base_site.html" %}
|
|
|
|
{% block main %}
|
|
|
|
|
|
|
|
<div class="pagetitle">
|
|
|
|
<h1>{{ title }}</h1>
|
|
|
|
<nav>
|
|
|
|
<ol class="breadcrumb">
|
|
|
|
<!-- TODO@slamora replace with lot list URL when exists -->
|
|
|
|
</ol>
|
|
|
|
</nav>
|
|
|
|
</div><!-- End Page Title -->
|
|
|
|
|
|
|
|
<section class="section profile">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-xl-12">
|
|
|
|
|
|
|
|
<div class="card">
|
|
|
|
<div class="card-body">
|
|
|
|
|
|
|
|
<div class="pt-4 pb-2">
|
|
|
|
<h5 class="card-title text-center pb-0 fs-4">{{ title }}</h5>
|
|
|
|
<p class="text-center">Please check that the information is correct.</p>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<table class="table table-hover">
|
|
|
|
<thead>
|
|
|
|
<tr class="text-center">
|
|
|
|
<th scope="col">Basic Data</th>
|
2022-08-11 12:50:47 +00:00
|
|
|
<th scope="col">Info Abstract device</th>
|
|
|
|
<th scope="col">Info Real device</th>
|
2022-07-29 15:02:27 +00:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">Manufacturer:</th>
|
2022-08-11 12:50:47 +00:00
|
|
|
<td class="table-success">{{ placeholder.binding.manufacturer or '' }}</td>
|
2022-07-29 15:02:27 +00:00
|
|
|
<td class="table-danger text-right">{{ placeholder.device.manufacturer or '' }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">Model:</th>
|
2022-08-11 12:50:47 +00:00
|
|
|
<td class="table-success">{{ placeholder.binding.model or '' }}</td>
|
2022-07-29 15:02:27 +00:00
|
|
|
<td class="table-danger">{{ placeholder.device.model or '' }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">Serial Number:</th>
|
2022-08-11 12:50:47 +00:00
|
|
|
<td class="table-success">{{ placeholder.binding.serial_number or '' }}</td>
|
2022-07-29 15:02:27 +00:00
|
|
|
<td class="table-danger">{{ placeholder.device.serial_number or '' }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">Brand:</th>
|
2022-08-11 12:50:47 +00:00
|
|
|
<td class="table-success">{{ placeholder.binding.brand or '' }}</td>
|
2022-07-29 15:02:27 +00:00
|
|
|
<td class="table-danger">{{ placeholder.device.brand or '' }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">Sku:</th>
|
2022-08-11 12:50:47 +00:00
|
|
|
<td class="table-success">{{ placeholder.binding.sku or '' }}</td>
|
2022-07-29 15:02:27 +00:00
|
|
|
<td class="table-danger">{{ placeholder.device.sku or '' }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">Generation:</th>
|
2022-08-11 12:50:47 +00:00
|
|
|
<td class="table-success">{{ placeholder.binding.generation or '' }}</td>
|
2022-07-29 15:02:27 +00:00
|
|
|
<td class="table-danger">{{ placeholder.device.generation or '' }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">Version:</th>
|
2022-08-11 12:50:47 +00:00
|
|
|
<td class="table-success">{{ placeholder.binding.version or '' }}</td>
|
2022-07-29 15:02:27 +00:00
|
|
|
<td class="table-danger">{{ placeholder.device.version or '' }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">Weight:</th>
|
2022-08-11 12:50:47 +00:00
|
|
|
<td class="table-success">{{ placeholder.binding.weight or '' }}</td>
|
2022-07-29 15:02:27 +00:00
|
|
|
<td class="table-danger">{{ placeholder.device.weight or '' }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">Width:</th>
|
2022-08-11 12:50:47 +00:00
|
|
|
<td class="table-success">{{ placeholder.binding.width or '' }}</td>
|
2022-07-29 15:02:27 +00:00
|
|
|
<td class="table-danger">{{ placeholder.device.width or '' }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">Height:</th>
|
2022-08-11 12:50:47 +00:00
|
|
|
<td class="table-success">{{ placeholder.binding.height or '' }}</td>
|
2022-07-29 15:02:27 +00:00
|
|
|
<td class="table-danger">{{ placeholder.device.height or '' }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">Depth:</th>
|
2022-08-11 12:50:47 +00:00
|
|
|
<td class="table-success">{{ placeholder.binding.depth or '' }}</td>
|
2022-07-29 15:02:27 +00:00
|
|
|
<td class="table-danger">{{ placeholder.device.depth or '' }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">Color:</th>
|
2022-08-11 12:50:47 +00:00
|
|
|
<td class="table-success">{{ placeholder.binding.color or '' }}</td>
|
2022-07-29 15:02:27 +00:00
|
|
|
<td class="table-danger">{{ placeholder.device.color or '' }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">Production date:</th>
|
2022-08-11 12:50:47 +00:00
|
|
|
<td class="table-success">{{ placeholder.binding.production_date or '' }}</td>
|
2022-07-29 15:02:27 +00:00
|
|
|
<td class="table-danger">{{ placeholder.device.production_date or '' }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">Variant:</th>
|
2022-08-11 12:50:47 +00:00
|
|
|
<td class="table-success">{{ placeholder.binding.variant or '' }}</td>
|
2022-07-29 15:02:27 +00:00
|
|
|
<td class="table-danger">{{ placeholder.device.variant or '' }}</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-08-11 12:50:47 +00:00
|
|
|
{% if placeholder.components %}
|
2022-07-29 15:02:27 +00:00
|
|
|
<h2>Components</h2>
|
|
|
|
<table class="table table-hover">
|
|
|
|
<thead>
|
|
|
|
<tr class="text-center">
|
2022-08-11 12:50:47 +00:00
|
|
|
<th scope="col">Info Abstract device</th>
|
|
|
|
<th scope="col">Info Real device</th>
|
2022-07-29 15:02:27 +00:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<td class="table-success">
|
|
|
|
</td>
|
|
|
|
<td class="table-danger text-right">
|
2022-08-11 12:50:47 +00:00
|
|
|
{{ placeholder.components or ''}}
|
2022-07-29 15:02:27 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-08-11 12:50:47 +00:00
|
|
|
{% if placeholder.device.manual_actions or placeholder.binding.manual_actions %}
|
2022-07-29 15:02:27 +00:00
|
|
|
<h2>Actions</h2>
|
|
|
|
<table class="table table-hover">
|
|
|
|
<thead>
|
|
|
|
<tr class="text-center">
|
2022-08-11 12:50:47 +00:00
|
|
|
<th scope="col">Info Abstract device</th>
|
|
|
|
<th scope="col">Info Real device</th>
|
2022-07-29 15:02:27 +00:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<td class="table-success">
|
2022-08-11 12:50:47 +00:00
|
|
|
{% for a in placeholder.binding.manual_actions %}
|
2022-07-29 15:02:27 +00:00
|
|
|
* {{ a.t }}<br />
|
|
|
|
{% endfor %}
|
|
|
|
</td>
|
|
|
|
<td class="table-danger text-right">
|
|
|
|
{% for a in placeholder.device.manual_actions %}
|
|
|
|
* {{ a.t }}<br />
|
|
|
|
{% endfor %}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
{% endif %}
|
|
|
|
|
2022-08-11 12:50:47 +00:00
|
|
|
{% if placeholder.device.tags %}
|
|
|
|
<h2>Tags</h2>
|
|
|
|
<table class="table table-hover">
|
|
|
|
<thead>
|
|
|
|
<tr class="text-center">
|
|
|
|
<th scope="col">Info Abstract device</th>
|
|
|
|
<th scope="col">Info Real device</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<td class="table-success">
|
|
|
|
</td>
|
|
|
|
<td class="table-danger text-right">
|
|
|
|
{% for a in placeholder.device.tags %}
|
|
|
|
* {{ a.t }}<br />
|
|
|
|
{% endfor %}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
{% endif %}
|
|
|
|
|
2022-07-29 15:02:27 +00:00
|
|
|
<div>
|
|
|
|
<form method="post">
|
|
|
|
<a href="{{ url_for('inventory.device_details', id=placeholder.device.devicehub_id) }}" class="btn btn-danger">Cancel</a>
|
|
|
|
<button class="btn btn-primary" type="submit">Confirm</button>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-xl-8">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
{% endblock main %}
|