46 lines
1.4 KiB
HTML
46 lines
1.4 KiB
HTML
{% extends "core/base.html" %}
|
|
|
|
{% block navi %}
|
|
<a href="{% url 'admin:index' %}">admin</a>
|
|
|
|
|
<a href="{% url 'logout' %}">logout</a>
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
|
|
<h1>current subjects</h1>
|
|
|
|
{% if prediction_list %}
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<td class="subject-cell">subject</td>
|
|
<td class="date-cell">date</td>
|
|
<td class="amount-cell">€</td>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for subject, transactions, info in prediction_list %}
|
|
{% for transaction in transactions %}
|
|
<tr>
|
|
{% if forloop.counter == 1 %}
|
|
<td rowspan="{{ transactions|length }}" class="subject-cell">{{ subject.name }}</td>
|
|
{% endif %}
|
|
<td class="date-cell">
|
|
{% if transaction.pk %}🗒{% else %}🔮{% endif %}
|
|
{{ transaction.booking_date|date:"d.m.y" }}
|
|
</td>
|
|
<td class="amount-cell">{{ transaction.amount }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
{% else %}
|
|
<p>
|
|
no data to show :/
|
|
</p>
|
|
{% endif %}
|
|
|
|
{% endblock %}
|