130 lines
3.5 KiB
HTML
130 lines
3.5 KiB
HTML
{% load i18n %}
|
|
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title>{{ donor.email }}</title>
|
|
<link href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.1.3/css/bootstrap.min.css" rel="stylesheet" />
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.1/font/bootstrap-icons.css" />
|
|
<style>
|
|
body {
|
|
font-size: 0.875rem;
|
|
background-color: #f8f9fa;
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-height: 100vh;
|
|
}
|
|
.custom-container {
|
|
background-color: #ffffff;
|
|
border-radius: 10px;
|
|
box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
|
|
padding: 30px;
|
|
margin-top: 30px;
|
|
flex-grow: 1;
|
|
}
|
|
.section-title {
|
|
color: #7a9f4f;
|
|
border-bottom: 2px solid #9cc666;
|
|
padding-bottom: 10px;
|
|
margin-bottom: 20px;
|
|
font-size: 1.5em;
|
|
}
|
|
.info-row {
|
|
margin-bottom: 10px;
|
|
}
|
|
.info-label {
|
|
font-weight: bold;
|
|
color: #545f71;
|
|
}
|
|
.info-value {
|
|
color: #333;
|
|
}
|
|
.component-card {
|
|
background-color: #f8f9fa;
|
|
border-left: 4px solid #9cc666;
|
|
margin-bottom: 15px;
|
|
transition: all 0.3s ease;
|
|
}
|
|
.component-card:hover {
|
|
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
|
|
transform: translateY(-2px);
|
|
}
|
|
.hash-value {
|
|
word-break: break-all;
|
|
background-color: #f3f3f3;
|
|
padding: 5px;
|
|
border-radius: 4px;
|
|
font-family: monospace;
|
|
font-size: 0.9em;
|
|
border: 1px solid #e0e0e0;
|
|
}
|
|
.card-title {
|
|
color: #9cc666;
|
|
}
|
|
.btn-primary {
|
|
background-color: #9cc666;
|
|
border-color: #9cc666;
|
|
padding: 0.1em 2em;
|
|
font-weight: 700;
|
|
}
|
|
.btn-primary:hover {
|
|
background-color: #8ab555;
|
|
border-color: #8ab555;
|
|
}
|
|
.btn-green-user {
|
|
background-color: #c7e3a3;
|
|
}
|
|
.btn-grey {
|
|
background-color: #f3f3f3;
|
|
}
|
|
footer {
|
|
background-color: #545f71;
|
|
color: #ffffff;
|
|
text-align: center;
|
|
padding: 10px 0;
|
|
margin-top: 20px;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="container custom-container">
|
|
<h1 class="text-center mb-4" style="color: #545f71;">{{ donor.email }}</h1>
|
|
|
|
<div class="row mt-4">
|
|
<div class="col">
|
|
<table class="table table-hover table-bordered align-middel">
|
|
<thead class="table-light">
|
|
<tr>
|
|
<th scope="col">ID</th>
|
|
<th scope="col" width="15%" class="text-center">{% trans "Manufacturer" %}
|
|
<th scope="col" width="15%" class="text-center">{% trans "Model" %}
|
|
<th scope="col" width="15%" class="text-center">{% trans "Serial Number" %}
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for dev in devices %}
|
|
<tr>
|
|
<td class="font-monospace">{{ dev.shortid }}</td>
|
|
<td class="font-monospace">{{ dev.manufacturer }}</td>
|
|
<td class="font-monospace">{{ dev.model }}</td>
|
|
<td class="font-monospace">{{ dev.serial_number }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<footer>
|
|
<p>
|
|
©{% now 'Y' %}eReuse. All rights reserved.
|
|
</p>
|
|
</footer>
|
|
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.1.3/js/bootstrap.bundle.min.js"></script>
|
|
</body>
|
|
</html>
|