|
|
|
@ -2,7 +2,7 @@ |
|
|
|
|
|
|
|
{% block menuapp %} |
|
|
|
|
|
|
|
{% include 'repostajes/_menu-repostajes.html' %} |
|
|
|
{% include 'macrociclos/_menu-macrociclos.html' %} |
|
|
|
|
|
|
|
{% endblock menuapp %} |
|
|
|
|
|
|
|
@ -10,14 +10,14 @@ |
|
|
|
<div class="container-xl"> |
|
|
|
<div class="row g-3 mb-4 align-items-center justify-content-between"> |
|
|
|
<div class="col-auto"> |
|
|
|
<h1 class="app-page-title mb-0">Repostajes</h1> |
|
|
|
<h1 class="app-page-title mb-0">Macrociclos</h1> |
|
|
|
</div> |
|
|
|
</div><!--//row--> |
|
|
|
<div class="col-auto"> |
|
|
|
<div class="page-utilities"> |
|
|
|
<div class="row g-4 justify-content-start justify-content-md-end align-items-center"> |
|
|
|
<div class="col-auto"> |
|
|
|
<a class="btn app-btn-primary" href="{% url 'repostajes:nuevo_repostaje' %}">Añadir repostaje</a> |
|
|
|
<a class="btn app-btn-primary" href="{% url 'macrociclos:nuevo_macrociclo' %}">Añadir macrociclo</a> |
|
|
|
</div> |
|
|
|
</div><!--//row--> |
|
|
|
</div><!--//table-utilities--> |
|
|
|
@ -40,19 +40,19 @@ |
|
|
|
<th class="cell">Consumo/100 kms</th> |
|
|
|
</tr> |
|
|
|
</thead> |
|
|
|
{% for repostaje in repostajes %} |
|
|
|
{% for macrociclo in macrociclos %} |
|
|
|
|
|
|
|
<tbody> |
|
|
|
<tr> |
|
|
|
<td class="cell"><a href="{% url 'repostajes:detalle_repostaje' repostaje.id %}">{{ repostaje.fecha }}</a></td> |
|
|
|
<td class="cell"><a href="{% url 'repostajes:detalle_vehiculo' repostaje.vehiculo.id %}">{{ repostaje.vehiculo.matricula }}</a></td> |
|
|
|
<td class="cell">{{ repostaje.kms }}</td> |
|
|
|
<td class="cell">{{ repostaje.litros }}</td> |
|
|
|
<td class="cell">{{ repostaje.importe }} €</td> |
|
|
|
<td class="cell">{{ repostaje.descuento }} €</td> |
|
|
|
<td class="cell">{{ repostaje.precioxlitro }} €</td> |
|
|
|
<td class="cell">{{ repostaje.kmsrecorridos }}</td> |
|
|
|
<td class="cell">{{ repostaje.consumo }}</td> |
|
|
|
<td class="cell"><a href="{% url 'macrociclos:detalle_macrociclo' macrociclo.id %}">{{ macrociclo.fecha }}</a></td> |
|
|
|
<td class="cell"><a href="{% url 'macrociclos:detalle_vehiculo' macrociclo.vehiculo.id %}">{{ macrociclo.vehiculo.matricula }}</a></td> |
|
|
|
<td class="cell">{{ macrociclo.kms }}</td> |
|
|
|
<td class="cell">{{ macrociclo.litros }}</td> |
|
|
|
<td class="cell">{{ macrociclo.importe }} €</td> |
|
|
|
<td class="cell">{{ macrociclo.descuento }} €</td> |
|
|
|
<td class="cell">{{ macrociclo.precioxlitro }} €</td> |
|
|
|
<td class="cell">{{ macrociclo.kmsrecorridos }}</td> |
|
|
|
<td class="cell">{{ macrociclo.consumo }}</td> |
|
|
|
</tr> |
|
|
|
</tbody> |
|
|
|
{% endfor %} |
|
|
|
|