++ fix: use months for assignment PDF link TTL instead of hours

This commit is contained in:
2026-04-08 15:22:37 +00:00
parent 6f8010514d
commit c585979340
19 changed files with 356 additions and 15 deletions

View File

@@ -0,0 +1,44 @@
<!DOCTYPE html>
<html lang="it">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>PDF territorio {{ $assignment->territorio?->numero }}</title>
<style>
html, body {
margin: 0;
height: 100%;
background: #111827;
}
.viewer {
width: 100%;
height: 100%;
border: 0;
display: block;
background: #111827;
}
.fallback {
position: fixed;
right: 12px;
bottom: 12px;
z-index: 10;
display: inline-flex;
align-items: center;
justify-content: center;
padding: 10px 14px;
border-radius: 999px;
background: rgba(17, 24, 39, 0.9);
color: #fff;
text-decoration: none;
font: 600 14px/1 system-ui, sans-serif;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
</style>
</head>
<body>
<iframe class="viewer" src="{{ $pdfUrl }}#toolbar=0&navpanes=0&scrollbar=0" title="PDF territorio {{ $assignment->territorio?->numero }}"></iframe>
<a class="fallback" href="{{ $pdfUrl }}" target="_blank" rel="noopener noreferrer">Apri PDF</a>
</body>
</html>