109 lines
3.5 KiB
HTML
109 lines
3.5 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>Review Queue</title>
|
|
<style>
|
|
body { font-family: sans-serif; }
|
|
table { border-collapse: collapse; width: 100%; margin-bottom: 2rem; }
|
|
th, td { border: 1px solid #ccc; padding: 0.5rem; text-align: left; vertical-align: top; }
|
|
th { background: #f3f3f3; }
|
|
.actions { margin-bottom: 1.5rem; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<p><a href="/trash/">Open trash</a></p>
|
|
<p><a href="/documents/">Back to documents</a></p>
|
|
|
|
<h1>Review Queue</h1>
|
|
|
|
<div class="actions">
|
|
{% if next_ocr %}
|
|
<a href="/documents/{{ next_ocr.document_id }}">Next needing OCR review</a>
|
|
{% endif %}
|
|
{% if next_ocr and next_fields %} | {% endif %}
|
|
{% if next_fields %}
|
|
<a href="/documents/{{ next_fields.document_id }}">Next needing field extraction</a>
|
|
{% endif %}
|
|
</div>
|
|
|
|
<h2>Needs OCR review ({{ needs_ocr_review|length }})</h2>
|
|
{% if needs_ocr_review %}
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>Document</th>
|
|
<th>Type</th>
|
|
<th>Review status</th>
|
|
<th>Updated</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for doc in needs_ocr_review %}
|
|
<tr>
|
|
<td><a href="/documents/{{ doc.document_id }}">{{ doc.document_id }}</a></td>
|
|
<td>{{ doc.document_type }}</td>
|
|
<td>{{ doc.review_status }}</td>
|
|
<td>{{ doc.updated_at }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
{% else %}
|
|
<p>No documents currently need OCR review.</p>
|
|
{% endif %}
|
|
|
|
<h2>Needs field extraction ({{ needs_field_extraction|length }})</h2>
|
|
{% if needs_field_extraction %}
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>Document</th>
|
|
<th>Type</th>
|
|
<th>Review status</th>
|
|
<th>Updated</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for doc in needs_field_extraction %}
|
|
<tr>
|
|
<td><a href="/documents/{{ doc.document_id }}">{{ doc.document_id }}</a></td>
|
|
<td>{{ doc.document_type }}</td>
|
|
<td>{{ doc.review_status }}</td>
|
|
<td>{{ doc.updated_at }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
{% else %}
|
|
<p>No reviewed documents are waiting on field extraction.</p>
|
|
{% endif %}
|
|
|
|
<h2>Recently updated</h2>
|
|
{% if recently_updated %}
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>Document</th>
|
|
<th>Type</th>
|
|
<th>Review status</th>
|
|
<th>Current path</th>
|
|
<th>Updated</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for doc in recently_updated %}
|
|
<tr>
|
|
<td><a href="/documents/{{ doc.document_id }}">{{ doc.document_id }}</a></td>
|
|
<td>{{ doc.document_type }}</td>
|
|
<td>{{ doc.review_status }}</td>
|
|
<td>{{ doc.current_path }}</td>
|
|
<td>{{ doc.updated_at }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
{% endif %}
|
|
</body>
|
|
</html>
|