{% extends "base.html" %}
{% import '_ui.html' as ui %}
{% block title %}Blancco reports - PXE Manager{% endblock %}
{# Blancco reports: one line per report, grouped by month (the erasure date
inside each report). Each row expands to its drives and every erasure
attempt; a failed Purge followed by a successful Clear on the same drive
counts as wiped and shows as "Successful, fallback". #}
{% block extra_head %}
{% endblock %}
{% block content %}
{% call ui.head('Blancco reports', 'Operate', total ~ ' report' ~ ('s' if total != 1) ~ ' on the share. Dates are the erasure date inside each report.') %}
Counts as successful: every drive has a successful erasure; a failed attempt fell back to another standard.Export
Evidence pack
Reports by month
{% for r in g.rows %}
{% set failed = r.state == 'Failed' %}
{{ g.label }}
{{ g.rows | length }} report{{ 's' if g.rows | length != 1 }}{% if g.failed %} | {{ g.failed }} failed{% endif %}
{% if g.month == this_month %}Evidence pack builds on the 1st
{% elif g.uploaded %}{{ ui.chip('Evidence pack uploaded', 'ok') }}
{% elif g.pack %}{{ ui.chip('Evidence pack to upload', 'act') }}
Download pack
{% endif %}
{{ r.when.strftime('%d %b %-I:%M %p') }}
{{ r.serial or '-' }}
{{ r.model or r.filename }}
{% if r.drives %}{{ r.drives | length }} drive{{ 's' if r.drives | length != 1 }}{% else %}{{ r.type }}{% endif %}
{% if r.state == 'Successful' %}{{ ui.chip('Successful, fallback' if r.fallback else 'Successful', 'ok') }}
{% elif failed %}{{ ui.chip('Failed', 'fail') }}
{% elif r.parse_error %}{{ ui.chip('Unreadable', 'err') }}
{% else %}no erasure{% endif %}
{% if r.cloud == 'sent' %}{{ ui.chip('Sent', 'ok') }}{% elif r.cloud == 'failed' %}{{ ui.chip('Not sent', 'err') }}{% else %}no status{% endif %}
{% if r.ticked %}{{ ui.chip('Ticked', 'neutral') }}{% elif r.to_tick %}{{ ui.chip('To tick', 'act') }}{% elif r.key %}{{ ui.chip('Not ticked', 'off') }}{% endif %}