Put data into a table for viewing
This commit is contained in:
parent
66a031d9a2
commit
7d6bd7cc70
@ -59,11 +59,27 @@
|
|||||||
</form>
|
</form>
|
||||||
<br>
|
<br>
|
||||||
Last Mileage
|
Last Mileage
|
||||||
<ul>
|
<table class="table table-striped">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th scope="col">Odometer</th>
|
||||||
|
<th scope="col">Time</th>
|
||||||
|
<th scope="col">Oil</th>
|
||||||
|
<th scope="col">Litres</th>
|
||||||
|
<th scope="col">$/Litre</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
{% for point in data %}
|
{% for point in data %}
|
||||||
<li>
|
<tr>
|
||||||
{{ point['time'] }} = {{ point['odometer'] }}, {{point['oilhealth']}}
|
<th scope="row">{{ point['odometer'] }}</th>
|
||||||
</li>
|
<td>{{ point['time'] }}</td>
|
||||||
|
<td>{{ point['oilhealth'] }}</td>
|
||||||
|
<td>{{ point['fuel'] }}</td>
|
||||||
|
<td>{{ point['fuelcost'] }}</td>
|
||||||
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
</ul>
|
|
||||||
|
Loading…
Reference in New Issue
Block a user