19 lines
674 B
HTML
19 lines
674 B
HTML
{% extends "layout.html" %}
|
|
{% block body %}
|
|
{% if data.error %}
|
|
<div>
|
|
<p class='error'><strong>Error:</strong> {{ data.error }}</p>
|
|
</div>
|
|
{% endif %}
|
|
<form action="{{ url_for('createPitStop') }}" method='post'>
|
|
<label for='date'>Date of Pitstop</label>
|
|
<input type='date' name='date' id='date' value='{{ data.last.date }}'/>
|
|
<br />
|
|
<label for='odometer'>Odometer</label>
|
|
<input type='text' name='odometer' id='odometer' value='{{ data.last.odometer }}'/>
|
|
<label for='litres'>Litres fuelled</label>
|
|
<input type='text' name='litres' id='litres' value='{{ data.last.litres }}'/>
|
|
<input type='submit' value='Log pit stop'>
|
|
</form>
|
|
|
|
{% endblock %} |