Erste lauffähige Version
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
{% extends "base.html" %}
|
||||
{% block content %}
|
||||
<h1>Übersicht</h1>
|
||||
|
||||
<h2>Vorlagen</h2>
|
||||
<a class="btn" href="{% url 'template-upload' %}">Neue Vorlage hochladen</a>
|
||||
<table>
|
||||
<thead><tr><th>Name</th><th>Platzhalter</th><th>Erstellt</th></tr></thead>
|
||||
<tbody>
|
||||
{% for t in templates %}
|
||||
<tr>
|
||||
<td><a href="{% url 'template-detail' t.id %}">{{ t.name }}</a></td>
|
||||
<td>{{ t.placeholders|join:", " }}</td>
|
||||
<td>{{ t.created_at|date:"d.m.Y H:i" }}</td>
|
||||
</tr>
|
||||
{% empty %}
|
||||
<tr><td colspan="3"><em>Noch keine Vorlagen vorhanden.</em></td></tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<h2>Aufträge</h2>
|
||||
<a class="btn" href="{% url 'job-create' %}">Neuen Serienbrief erstellen</a>
|
||||
<table>
|
||||
<thead><tr><th>ID</th><th>Vorlage</th><th>Status</th><th>Fortschritt</th><th>Erstellt</th></tr></thead>
|
||||
<tbody>
|
||||
{% for j in jobs %}
|
||||
<tr>
|
||||
<td><a href="{% url 'job-detail' j.id %}">{{ j.id|stringformat:"s"|slice:":8" }}…</a></td>
|
||||
<td>{{ j.template.name }}</td>
|
||||
<td class="status-{{ j.status }}">{{ j.get_status_display }}</td>
|
||||
<td>{{ j.processed_rows }} / {{ j.total_rows }}</td>
|
||||
<td>{{ j.created_at|date:"d.m.Y H:i" }}</td>
|
||||
</tr>
|
||||
{% empty %}
|
||||
<tr><td colspan="5"><em>Noch keine Aufträge.</em></td></tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user