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