From 589f3f4adbe69ca49eef289d8c0b2fda3f9b7974 Mon Sep 17 00:00:00 2001 From: Celestino Rey Date: Tue, 30 Jul 2024 08:33:16 +0200 Subject: [PATCH] =?UTF-8?q?Creado=20=C3=ADndice=20con=20pesta=C3=B1a=20par?= =?UTF-8?q?a=20cada=20veh=C3=ADculo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../servicios/repostajes/templates/index.html | 50 +++++++++---------- 1 file changed, 23 insertions(+), 27 deletions(-) diff --git a/RepostajesPy/servicios/repostajes/templates/index.html b/RepostajesPy/servicios/repostajes/templates/index.html index b968ab9..5b48277 100644 --- a/RepostajesPy/servicios/repostajes/templates/index.html +++ b/RepostajesPy/servicios/repostajes/templates/index.html @@ -10,9 +10,9 @@ Todos {% for cadacoche in vehiculos %} - {{ cadacoche.marca }} + {{ cadacoche.marca }} - {% endfor %} + {% endfor %} Vehículos @@ -28,13 +28,13 @@ # - Fecha - Vehículo - Kilómetros - Litros - Descuento - Precio/litro - Importe + Fecha + Vehículo + Kilómetros + Litros + Descuento + Precio/litro + Importe @@ -52,8 +52,7 @@ {% endfor %} - - + @@ -67,7 +66,6 @@ - @@ -76,32 +74,30 @@ + {% for repostaje in repostajes %} - - - + + {% if repostaje.vehiculo_id == micoche.id %} - - - - - - - - - + + + + + + - - - {% endfor %} + {% endif %} + {% endfor %} +
Matrícula # Fecha VehículoDescuento Precio/litro Importe
{{ micoche.matricula }} {{ repostaje.id }} {{ repostaje.fecha }}{{ repostaje.vehiculo }}{{ repostaje.kms }}{{ repostaje.litros }}{{ repostaje.descuento }}{{ repostaje.precioxlitro }}{{ repostaje.importe }}{{ repostaje.kmsrecorridos }} 0{{ repostaje.vehiculos.matricula }}{{ "%.0f"|format(repostaje.kms) }}{{ "%.2f €"|format(repostaje.litros) }}{{ "%.2f €"|format(repostaje.descuento) }}{{ "%.2f €"|format(repostaje.precioxlitro) }}{{ "%.2f €"|format(repostaje.importe) }}