56 lines
1.9 KiB
HTML
56 lines
1.9 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>Trash</title>
|
|
<style>
|
|
body { font-family: sans-serif; }
|
|
table { border-collapse: collapse; width: 100%; }
|
|
th, td { border: 1px solid #ccc; padding: 0.5rem; text-align: left; vertical-align: top; }
|
|
th { background: #f3f3f3; }
|
|
form { display: inline; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<p><a href="/documents/">Back to documents</a> | <a href="/queue/">Open review queue</a></p>
|
|
|
|
<h1>Trash</h1>
|
|
|
|
{% if documents %}
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>Document</th>
|
|
<th>Type</th>
|
|
<th>Review status</th>
|
|
<th>Trashed at</th>
|
|
<th>Current path</th>
|
|
<th>Actions</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for doc in documents %}
|
|
<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.trashed_at }}</td>
|
|
<td>{{ doc.current_path }}</td>
|
|
<td>
|
|
<form method="post" action="/trash/{{ doc.document_id }}/restore">
|
|
<button type="submit">Restore</button>
|
|
</form>
|
|
<form method="post" action="/trash/{{ doc.document_id }}/delete" style="margin-left: 0.5rem;">
|
|
<button type="submit">Delete permanently</button>
|
|
</form>
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
{% else %}
|
|
<p>Trash is empty.</p>
|
|
{% endif %}
|
|
</body>
|
|
</html>
|