webapp: export Blancco reports for the last 1/3/6/12 months
/reports/export?range=1m|3m|6m|12m&format=csv|zip. CSV has one row per erased drive (system and drive serials, standard, result, times, licence consumption id). ZIP holds the original XML/PDF reports plus summary.csv. Reports are selected by the date inside each XML, falling back to mtime only when it is missing. Exports are audit-logged.
This commit is contained in:
@@ -9,6 +9,26 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="section-card">
|
||||
<div class="section-title">Export Reports</div>
|
||||
<form method="get" action="{{ url_for('blancco_export_reports') }}" class="d-flex flex-wrap align-items-center gap-2">
|
||||
<label for="exportRange" class="mb-0">Reports from the last</label>
|
||||
<select id="exportRange" name="range" class="form-select form-select-sm w-auto">
|
||||
<option value="1m">1 month</option>
|
||||
<option value="3m">3 months</option>
|
||||
<option value="6m">6 months</option>
|
||||
<option value="12m">12 months</option>
|
||||
</select>
|
||||
<button type="submit" name="format" value="csv" class="pxe-btn pxe-btn-secondary" title="One row per erased drive">
|
||||
<i class="bi bi-filetype-csv"></i> Summary CSV
|
||||
</button>
|
||||
<button type="submit" name="format" value="zip" class="pxe-btn pxe-btn-secondary" title="Original XML/PDF reports plus summary.csv">
|
||||
<i class="bi bi-file-zip"></i> Reports ZIP
|
||||
</button>
|
||||
</form>
|
||||
<p class="small text-muted mt-2 mb-0">Dated by the timestamp inside each report, not the file date.</p>
|
||||
</div>
|
||||
|
||||
<div class="section-card">
|
||||
<div class="section-title">Drive Erasure Certificates</div>
|
||||
{% if reports %}
|
||||
|
||||
Reference in New Issue
Block a user