From 4acf36112c810628af7a6f8800199bb1e178a144 Mon Sep 17 00:00:00 2001 From: Joachim Lusiardi Date: Sun, 7 Aug 2016 13:18:04 +0200 Subject: [PATCH] add ids to pitstop elements --- app/templates/pitstops.html | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) 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 %}