rollerverbrauch/templates/newPitStopForm.html

32 lines
902 B
HTML
Raw Normal View History

2015-03-03 22:49:43 +01:00
{% extends "layout.html" %}
2015-03-04 08:11:52 +01:00
{% block navigation %}
{% endblock %}
2015-03-03 22:49:43 +01:00
{% block body %}
{% if data.error %}
<div>
<p class='error'><strong>Error:</strong> {{ data.error }}</p>
</div>
{% endif %}
2015-03-04 08:11:52 +01:00
<form class="form" action="{{ url_for('createPitStop') }}" method='post'>
<ul>
<li>
<label for='date'>Date of Pitstop:</label>
<input type='date' name='date' id='date' value='{{ data.last.date }}'/>
</li>
<li>
<label for='odometer'>Odometer:</label>
<input type='text' name='odometer' id='odometer' value='{{ data.last.odometer }}'/>
</li>
<li>
<label for='litres'>Litres fuelled:</label>
<input type='text' name='litres' id='litres' value='{{ data.last.litres }}'/>
</li>
<li>
<button class="submit" type="submit">Log pit stop</button>
<a href="{{ url_for('getPitStops') }}">Abort</a>
</li>
</ul>
2015-03-03 22:49:43 +01:00
</form>
{% endblock %}