initial commit

This commit is contained in:
joachim lusiardi
2015-03-03 22:49:43 +01:00
commit af7ef156fd
7 changed files with 180 additions and 0 deletions

44
templates/pitstops.html Normal file
View File

@@ -0,0 +1,44 @@
{% extends "layout.html" %}
{% block body %}
<a href='{{ url_for('createPitStopForm') }}'>Create Pitstop</a>
<table>
<tr>
<th>
Date
</th>
<th>
Odometer
</th>
<th>
Distance
</th>
<th>
Litres
</th>
<th>
Average
</th>
</tr>
{% for pitstop in data['pitstops'] %}
<tr>
<td>
{{pitstop.date}}
</td>
<td class='right-aligned'>
{{pitstop.odometer}} km
</td>
<td class='right-aligned'>
{% if pitstop.distance %}{{pitstop.distance}}{% else %} --{% endif %} km
</td>
<td class='right-aligned'>
{{pitstop.litres}} l
</td>
<td class='right-aligned'>
{% if pitstop.average %}{{pitstop.average}}{% else %} --{% endif %} l/100km
</td>
</tr>
{% endfor %}
</table
{% endblock %}