diff --git a/app/templates/pitstops.html b/app/templates/pitstops.html index 25c7283..9a4cec5 100644 --- a/app/templates/pitstops.html +++ b/app/templates/pitstops.html @@ -13,6 +13,7 @@
{% for vehicle in current_user.vehicles %} + {% set vehicleloop = loop %}

{{vehicle.name}}

{% if vehicle.pitstops %} @@ -22,19 +23,19 @@ - + - + - + -
Date{{pitstop.date}}{{pitstop.date}}
Odometer{{pitstop.odometer}} km{{pitstop.odometer}} km
{{ pitstop.consumable.name }}{{pitstop.amount}} {{ pitstop.consumable.unit }}{{pitstop.amount}} {{ pitstop.consumable.unit }}
Costs + {% if pitstop.costs %} {{pitstop.costs}} € {% else %} @@ -44,10 +45,10 @@
{% if loop.first %} - + edit - + delete {% endif %}