{% 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
{% report_stats_row object "Overall Results" "total" %} {% report_stats_row object "LOW Severity Results" "low" %} {% report_stats_row object "MIDDLE Severity Results" "middle" %} {% report_stats_row object "HIGH Severity Results" "high" %}
ID {{ object.id }}
Created {{ object.created | date:"Y-m-d G:i:s" }}
Devices involved {{ object.device_count }}
Unique Tests involved {{ object.test_count }}
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 %}