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) }}