Files
eumi_v4/equipment/templates/equipment/print_inventory.html
T

106 lines
4.6 KiB
HTML

{% load static %}
<!DOCTYPE html>
<html lang="ro">
<head>
<meta charset="UTF-8">
<title>Fișă Inventar - {{ employee.name }}</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
<style>
@media print {
.no-print { display: none !important; }
}
.signature-box { margin-top: 50px; }
</style>
</head>
<body class="p-4">
<div class="d-flex justify-content-between align-items-center mb-4">
<!-- Antet Oficial pentru interfața web -->
<div class="d-flex align-items-center mb-4 pb-3 border-bottom">
<img src="{% static 'img/stema.png' %}" alt="Stema Roman" style="width: 55px; height: auto;" class="me-3">
<div class="lh-sm">
<div class="fw-bold fs-5">U.A.T. Municipiul Roman</div>
<div class="text-secondary" style="font-size: 0.9em;">Compartiment administrare infrastructură I.T. și baze de date</div>
</div>
</div>
<button class="btn btn-primary no-print" onclick="window.print()">Printează Fișa</button>
</div>
<h3 class="text-center mb-4">Fișă de Inventar Echipamente IT</h3>
<h5 class="text-center text-muted mb-4">la data de: {% now "d.m.Y" %}</h5>
<div class="mb-4">
<strong>Nume Angajat:</strong> {{ employee.name }}<br>
<strong>Funcție:</strong> {{ employee.role }}<br>
<strong>Birou:</strong> {{ employee.office_number }}<br>
<strong>Structură:</strong>
{% if employee.directie %}{{ employee.directie.name }}{% endif %}
{% if employee.serviciu %} / {{ employee.serviciu.name }}{% endif %}
{% if employee.compartiment %} / {{ employee.compartiment.name }}{% endif %}
</div>
<h4>Echipamente în custodie</h4>
<table class="table table-bordered table-sm mt-3">
<thead class="table-light">
<tr>
<th>Cod Echipament</th>
<th>Tip</th>
<th>Detalii / Producător</th>
</tr>
</thead>
<tbody>
{% for pc in inventory.computers %}
<tr>
<td class="align-middle">{{ pc.equipment_code }}</td>
<td class="align-middle">Computer/Laptop</td>
<td>
<strong>{{ pc.oem_name|default:"Sistem Asamblat" }}</strong><br>
<span style="font-size: 0.9em;">
<strong>Procesor:</strong> {{ pc.cpu }} | <strong>Placă de bază:</strong> {{ pc.motherboard }} | <strong>RAM:</strong> {{ pc.ram }} | <strong>Stocare:</strong> {{ pc.storage }} {% if pc.optical_drive %}| <strong>Optic:</strong> {{ pc.optical_drive }}{% endif %}<br>
<strong>MAC:</strong> {{ pc.mac_address }} | <strong>Licența S.O.:</strong> {{ pc.os_license }} {% if pc.additional_licenses %}| <strong>Licențe:</strong> {{ pc.additional_licenses }}{% endif %}
</span>
</td>
</tr>
{% endfor %}
{% for monitor in inventory.monitors %}
<tr>
<td class="align-middle">{{ monitor.equipment_code }}</td>
<td class="align-middle">Monitor</td>
<td>
<strong>{{ monitor.name }}</strong><br>
<span style="font-size: 0.9em;">
<strong>Diagonală:</strong> {{ monitor.screen_diagonal }} | <strong>S/N:</strong> {{ monitor.serial_number }}
{% if monitor.observations %}<br><strong>Observații:</strong> {{ monitor.observations }}{% endif %}
</span>
</td>
</tr>
{% endfor %}
{% for peripheral in inventory.peripherals %}
<tr>
<td class="align-middle">{{ peripheral.equipment_code }}</td>
<td class="align-middle">{{ peripheral.get_peripheral_type_display }}</td>
<td>
<strong>{{ peripheral.name }}</strong><br>
<span style="font-size: 0.9em;">
<strong>S/N:</strong> {{ peripheral.serial_number }}
</span>
</td>
</tr>
{% endfor %}
</tbody>
</table>
<div class="row signature-box">
<div class="col-6 text-center">
<strong>Compartimentul IT</strong><br><br>
....................................
</div>
<div class="col-6 text-center">
<strong>Semnătură Titular (Angajat)</strong><br><br>
....................................
</div>
</div>
</body>
</html>