2016-06-22 22:48:27 +02:00
|
|
|
{% extends 'layout.html' %}
|
|
|
|
|
|
|
|
{% block body %}
|
|
|
|
<div class='col-md-2' ></div>
|
|
|
|
<div class='col-md-8'>
|
|
|
|
<div class='panel panel-default'>
|
|
|
|
<div class='panel-body'>
|
|
|
|
<h3>Delete pitstop?</h3>
|
|
|
|
<table style='width: 100%'>
|
|
|
|
<tr>
|
|
|
|
<th style='text-align:right'>Date of Pitstop</th>
|
|
|
|
<td style='text-align: left'>{{ pitstop.date }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th style='text-align:right'>Odometer</th>
|
|
|
|
<td style='text-align: left'>{{ pitstop.odometer }} km</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th style='text-align:right'>Litres</th>
|
2016-07-21 19:11:32 +02:00
|
|
|
<td style='text-align: left'>{{ pitstop.amount }} {{ pitstop.consumable.unit }}</td>
|
2016-06-22 22:48:27 +02:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th style='text-align:right'>Costs (overall)</th>
|
2016-07-21 19:11:32 +02:00
|
|
|
<td style='text-align: left'>
|
|
|
|
{% if pitstop.costs %}
|
|
|
|
{{pitstop.costs}}
|
|
|
|
{% else %}
|
|
|
|
--
|
|
|
|
{% endif %}
|
|
|
|
€
|
|
|
|
</td>
|
2016-06-22 22:48:27 +02:00
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
<form class='form-horizontal' method='POST'>
|
|
|
|
{{ form.hidden_tag() }}
|
|
|
|
{{ render_field_with_errors(form.submit) }}
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class='col-md-2' ></div>
|
|
|
|
{% endblock %}
|