Feb 02 2026: implement PDF report converter
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user