covid-formity/templates/admin_index.html

72 lines
2.6 KiB
HTML

{% extends "admin/master.html" %}
{% block body %}
<div class="row">
<div class="col-md-4">
<h2 class="page-header">Fullfillment stats</h2>
<table class="table">
<thead>
<tr>
<th>Status</th>
<th>Handling orga</th>
<th>Count</th>
<th>Delivered / Requested (full)</th>
<th>Delivered / Requested (front)</th>
</tr>
</thead>
<tbody>
{% for rec in stats %}
<tr>
<td>{{ rec.status.name }}</td>
<td>{{ rec.handling_orga }}</td>
<td>{{ rec.count }}</td>
<td>{{ rec.faceshield_full_delivered }} / {{ rec.faceshield_full_required }}</td>
<td>{{ rec.faceshield_front_delivered }} / {{ rec.faceshield_front_required }}</td>
</tr>
{% endfor %}
</tbody>
</table>
<h2 class="page-header">
Creation date <small>excluding spam and rejected</small>
</h2>
<table class="table">
<thead>
<tr>
<th>Status</th>
<th>Count</th>
</tr>
</thead>
<tbody>
{% for row in dstats %}
<tr><td>{{ row.date }}</td><td>{{ row.count }}</td></tr>
{% endfor %}
</tbody>
</table>
</div>
<div class="col-md-6">
<h2 class="page-header">Voivodeship breakdown <small>excluding spam and rejected</small></h2>
<table class="table">
<thead>
<tr>
<th>Voivodeship</th>
<th>Count</th>
<th>Delivered / Requested (full)</th>
<th>Delivered / Requested (front)</th>
</tr>
</thead>
<tbody>
{% for rec in vstats %}
<tr>
<td>{{ rec.voivodeship }}</td>
<td>{{ rec.count }}</td>
<td>{{ rec.faceshield_full_delivered }} / {{ rec.faceshield_full_required }}</td>
<td>{{ rec.faceshield_front_delivered }} / {{ rec.faceshield_front_required }}</td>
</tr>
{% endfor %}
</tbody>
</table>
<p class="text-muted">Jedzenie dla qrde i jagny:</p>
<img src="https://www.jestemfit.pl/upload/gallery/2016/04/id_11831_1460718459_750x500.jpg" class="img-responsive img-thumbnail" style="max-height: 200px" />
</div>
</div>
{% endblock %}