Put data into a table for viewing

This commit is contained in:
ahosking 2022-08-12 02:25:59 -04:00
parent 66a031d9a2
commit 7d6bd7cc70

View File

@ -59,11 +59,27 @@
</form> </form>
<br> <br>
Last Mileage Last Mileage
<ul> <table class="table table-striped">
{% for point in data %} <thead>
<li> <tr>
{{ point['time'] }} = {{ point['odometer'] }}, {{point['oilhealth']}} <th scope="col">Odometer</th>
</li> <th scope="col">Time</th>
{% endfor %} <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 %} {% endblock %}
</ul>