{% extends "base.html" %} {% block title %}Audit Report for {{ object }} | {{ block.super }}{% endblock %} {% block content %}

Audit Report for {{ object }}

Number of audit units: {{ object.contestbatch_set.all|length }}

Margin of victory is {{ object.margin|floatformat:3 }}%

{% for contestbatch in object.contestbatch_set.all|dictsort:"batch" %} {% if forloop.first %} {% for votecount in contestbatch.votecount_set.all|dictsort:"choice.name"%} {% endfor %} {% for votecount in contestbatch.votecount_set.all|dictsort:"choice.name"%} {% endfor %} {% endif %} {% endfor %} {% for contestbatch in object.contestbatch_set.all|dictsort:"batch" %} {% for votecount in contestbatch.votecount_set.all|dictsort:"choice.name"%} {% endfor %} {% endfor %}
AuditUnit Type Batches Ballots Contest Ballots{{ votecount.choice }}
Totals {{ votecount.choice.votes }}
{{ forloop.counter|stringformat:"04d" }} {{ contestbatch.batch.type }} {{ contestbatch.batch.name }} {{ contestbatch.ballot_count }} {{ contestbatch.contest_ballots }}{{ votecount.votes }}
{% endblock %}