Feb 02 2026: implement PDF report converter

This commit is contained in:
2026-02-28 14:52:30 -05:00
parent 1ac3eac982
commit 118a2a194d
4 changed files with 596 additions and 1 deletions
+1
View File
@@ -455,6 +455,7 @@ function setRating(btn) {
const input = document.getElementById(btn.dataset.target);
// Toggle off: clicking the currently active star clears the rating to 0.
// This allows removal of a single-star (or any) rating via a second click.
const newVal = (clicked === current) ? 0 : clicked;
group.dataset.rating = newVal;
+4
View File
@@ -130,6 +130,10 @@
<i class="bi bi-arrow-left"></i> Back to Inspections
</a>
<div class="d-flex gap-2">
<a href="{{ url_for('inspections.export_pdf', inspection_id=inspection.id) }}"
class="btn btn-sm btn-danger">
<i class="bi bi-file-earmark-pdf"></i> Export PDF
</a>
<button onclick="window.print()" class="btn btn-sm btn-outline-secondary">
<i class="bi bi-printer"></i> Print
</button>