husstanden/templates/pages/bills.html

37 lines
841 B
HTML
Raw Normal View History

2019-04-26 06:22:43 +02:00
{% set title = "Bills" %}
{% extends "layout/dash.html" %}
{% block content %}
<div class="container module">
<table class="table">
<thead class="thead-light">
<tr>
<th scope="col">Payment to</th>
<th scope="col">Description</th>
2019-04-26 06:52:27 +02:00
<th scope="col" style="width: 120px">Sum</th>
<th scope="col" style="width: 120px">KID</th>
<th scope="col" style="width: 120px">Date Due</th>
<th scope="col" style="width: 150px">Payment status</th>
2019-04-26 06:22:43 +02:00
</tr>
</thead>
<tbody>
{% for row in data %}
2019-04-26 06:52:27 +02:00
<!--<tr class="table-{{ 'success' if row[5] else 'danger' }}">-->
2019-04-26 06:22:43 +02:00
<tr>
<th>{{ row[0] }}</th>
<td>{{ row[1] }}</td>
<td>{{ row[2] }}</td>
<td>{{ row[3] }}</td>
<td>{{ row[4] }}</td>
2019-04-26 06:52:27 +02:00
<td style="background-color:{{ '#4F4' if row[5] else '#F44' }};"></td>
2019-04-26 06:22:43 +02:00
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% endblock %}