|
|
{% extends 'base.html' %}
|
|
|
|
|
|
{% block content %}
|
|
|
<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">Actualización de consumo</h1>
|
|
|
</div>
|
|
|
</div><!--//row-->
|
|
|
|
|
|
|
|
|
<nav id="orders-table-tab" class="orders-table-tab app-nav-tabs nav shadow-sm flex-column flex-sm-row mb-4">
|
|
|
<a class="flex-sm-fill text-sm-center nav-link active" id="repostajes-tab" data-bs-toggle="tab" href="#repostajes" role="tab" aria-controls="repostajes" aria-selected="true">Repostajes</a>
|
|
|
</nav>
|
|
|
|
|
|
|
|
|
<div class="tab-content" id="orders-table-tab-content">
|
|
|
<div class="tab-pane fade show active" id="repostajes" role="tabpanel" aria-labelledby="repostajes-tab">
|
|
|
<div class="app-card app-card-orders-table shadow-sm mb-5">
|
|
|
<div class="app-card-body">
|
|
|
<div class="table-responsive">
|
|
|
<!--
|
|
|
<table class="table app-table-hover mb-0 text-left">
|
|
|
<thead>
|
|
|
<tr>
|
|
|
<th class="cell">#</th>
|
|
|
<th class="cell">Fecha</th>
|
|
|
<th class="cell">Vehículo</th>
|
|
|
<th style="text-align: right" class="cell">Kilómetros</th>
|
|
|
<th style="text-align: right" class="cell">Litros</th>
|
|
|
<th style="text-align: right" class="cell">Descuento</th>
|
|
|
<th style="text-align: right" class="cell">Precio por litro</th>
|
|
|
<th style="text-align: right" class="cell">Importe</th>
|
|
|
<th style="text-align: right" class="cell">Kms recorridos</th>
|
|
|
<th style="text-align: right" class="cell">Consumo</th>
|
|
|
</tr>
|
|
|
</thead>
|
|
|
<tbody>
|
|
|
{% for repostaje in repostajes %}
|
|
|
<tr>
|
|
|
<td class="cell">{{ repostaje.id }}</td>
|
|
|
<td class="cell">{{ repostaje.fecha }}</td>
|
|
|
<td class="cell">{{ repostaje.vehiculos.matricula }}</td>
|
|
|
<td style="text-align: right" class="cell">{{ "%.0f"|format(repostaje.kms) }}</td>
|
|
|
<td style="text-align: right" class="cell">{{ "%.2f €"|format(repostaje.litros) }}</td>
|
|
|
<td style="text-align: right" class="cell">{{ "%.2f €"|format(repostaje.descuento) }}</td>
|
|
|
<td style="text-align: right" class="cell">{{ "%.2f €"|format(repostaje.precioxlitro) }}</td>
|
|
|
<td style="text-align: right" class="cell">{{ "%.2f €"|format(repostaje.importe) }}</td>
|
|
|
<td style="text-align: right" class="cell">{{ "%.2f €"|format(repostaje.kmsrecorridos) }}</td>
|
|
|
<td style="text-align: right" class="cell">{{ "%.2f €"|format(repostaje.consumo) }}</td>
|
|
|
</tr>
|
|
|
{% endfor %}
|
|
|
</tbody>
|
|
|
</table>
|
|
|
-->
|
|
|
</div><!--//table-responsive-->
|
|
|
</div><!--//app-card-body-->
|
|
|
</div><!--//app-card-->
|
|
|
</div><!--//tab-pane-->
|
|
|
</div><!--//tab-content-->
|
|
|
</div><!--//container-fluid-->
|
|
|
{% endblock %}
|