{% extends 'generic/object.html' %} {% load validity %} {% load django_bootstrap5 %} {% load buttons %} {% load perms %} {% load render_table from django_tables2 %} {% block controls %}
{% if request.user|can_delete:object %} {% delete_button object %} {% endif %}
{% endblock %} {% block content %}
Compliance Report
{% with job=object.jobs.first %} {% if job.error %} {% endif %} {% endwith %}
ID {{ object.id }}
Created {{ object.created | date:"Y-m-d G:i:s" }}
Job {% if job %}{{ job.pk }} | {{ job | colored_choice:"status" }}{% else %}—{% endif %}
Job Error {{ job.error }}
Devices involved {{ object.device_count }}
Unique Tests involved {{ object.test_count }}
Overall Results {% report_stats object "total" %}
LOW SeverityMIDDLE SeverityHIGH Severity
{% report_stats object "low" %} {% report_stats object "middle" %} {% report_stats object "high" %}
Group Results By
{% bootstrap_form groupby_form layout="inline" %}
{% bootstrap_button button_type="submit" content="Apply" %}
Statistics grouped by {{ groupby_label }}
{% if groupby_table %}
{% render_table groupby_table %}
{%include 'inc/paginator.html' with paginator=groupby_table.paginator page=groupby_table.page%} {% else %} Choose a field to group by to display statistics {% endif %}
{% endblock content %}